/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_maps.h | 34 static bool Create(const pid_t pid, std::vector<std::shared_ptr<DfxMap>>& maps, std::vector<int>& mapIndex); 40 void AddMap(std::shared_ptr<DfxMap> map, bool enableMapIndex = false); 44 bool FindMapByAddr(uintptr_t addr, std::shared_ptr<DfxMap>& map) const; 45 bool FindMapByFileInfo(std::string name, uint64_t offset, std::shared_ptr<DfxMap>& map) const; 46 bool FindMapsByName(std::string name, std::vector<std::shared_ptr<DfxMap>>& maps) const; 47 const std::vector<std::shared_ptr<DfxMap>>& GetMaps() const { return maps_; } in GetMaps() 58 std::vector<std::shared_ptr<DfxMap>> maps_ {};
|
H A D | dfx_map.h | 30 class DfxMap { class 32 static std::shared_ptr<DfxMap> Create(std::string buf, size_t size); 37 DfxMap() = default; 38 DfxMap(uint64_t begin, uint64_t end, uint64_t offset, in DfxMap() function in OHOS::HiviewDFX::DfxMap 41 DfxMap(uint64_t begin, uint64_t end, uint64_t offset, in DfxMap() function in OHOS::HiviewDFX::DfxMap 67 std::shared_ptr<DfxMap> prevMap = nullptr; 80 inline bool operator<(const DfxMap &other) const in operator <() 92 static bool ValueLessThen(uint64_t vaddr, const DfxMap &a) in ValueLessThen() 96 static bool ValueLessEqual(uint64_t vaddr, const DfxMap &a) in ValueLessEqual()
|
H A D | dfx_hap.h | 25 class DfxMap; 32 bool ParseHapInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, 36 bool ParseHapFileInfo(uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, JsFunction *jsFunction); 37 bool ParseHapMemInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, 41 bool ParseHapMemData(const pid_t pid, std::shared_ptr<DfxMap> map);
|
H A D | dfx_accessors.h | 35 class DfxMap; 41 static bool GetMapByPcAndCtx(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg); 46 virtual int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) = 0; 60 int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) override; 79 int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) override; 90 int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) override;
|
H A D | unwind_context.h | 30 class DfxMap; 61 int (*GetMapByPc)(uintptr_t, std::shared_ptr<DfxMap> &, void *); 71 std::shared_ptr<DfxMap> map = nullptr;
|
H A D | dfx_elf.h | 35 static std::shared_ptr<DfxElf> CreateFromHap(const std::string& file, std::shared_ptr<DfxMap> prevMap,
75 int FindUnwindTableInfo(uintptr_t pc, std::shared_ptr<DfxMap> map, struct UnwindTableInfo& uti);
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | maps_test.cpp | 78 std::shared_ptr<DfxMap> map = nullptr; in HWTEST_F() 92 std::shared_ptr<DfxMap> map = nullptr; in HWTEST_F() 109 std::vector<std::shared_ptr<DfxMap>> mapsV; in HWTEST_F() 124 std::shared_ptr<DfxMap> map = nullptr; in HWTEST_F() 125 map = std::make_shared<DfxMap>(0, 0, 0, "1", "anon:ArkTS Code"); in HWTEST_F() 127 map = std::make_shared<DfxMap>(0, 0, 0, "1", "/dev/zero"); in HWTEST_F() 129 map = std::make_shared<DfxMap>(0, 0, 0, 4, "[anon:ArkTS Code]"); in HWTEST_F() 149 shared_ptr<DfxMap> map = DfxMap::Create(INVALID_MAP_ITEM, sizeof(INVALID_MAP_ITEM)); in HWTEST_F() 162 shared_ptr<DfxMap> ma in HWTEST_F() [all...] |
H A D | dfx_hap_test.cpp | 48 auto map = std::make_shared<DfxMap>(); in HWTEST_F() 71 auto map = std::make_shared<DfxMap>(); in HWTEST_F() 72 map->begin = 10001; // 10001 : simulate the begin value of DfxMap in HWTEST_F() 73 map->end = 10101; // 10101 : simulate the end value of DfxMap in HWTEST_F() 119 auto map = std::make_shared<DfxMap>(); in HWTEST_F()
|
H A D | unwinder_test.cpp | 432 std::shared_ptr<DfxMap> map = nullptr; in HWTEST_F() 673 auto map = DfxMap::Create(testMap, sizeof(testMap)); in HWTEST_F() 683 map = DfxMap::Create(testMap, sizeof(testMap)); in HWTEST_F() 706 auto map = DfxMap::Create(testMap, sizeof(testMap)); in HWTEST_F() 731 auto map = DfxMap::Create(testMap, sizeof(testMap)); in HWTEST_F()
|
H A D | memory_test.cpp | 492 std::vector<std::shared_ptr<DfxMap>> shmmMaps; in HWTEST_F() 494 std::shared_ptr<DfxMap> shmmMap = nullptr; in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_map.cpp | 39 #define LOG_TAG "DfxMap" 194 std::shared_ptr<DfxMap> DfxMap::Create(std::string buf, size_t size) in Create() 199 auto map = std::make_shared<DfxMap>(); in Create() 207 bool DfxMap::Parse(char* buf, size_t size) in Parse() 259 bool DfxMap::IsMapExec() in IsMapExec() 267 bool DfxMap::IsArkExecutable() in IsArkExecutable() 285 bool DfxMap::IsVdsoMap() in IsVdsoMap() 293 uint64_t DfxMap::GetRelPc(uint64_t pc) in GetRelPc() 301 std::string DfxMap [all...] |
H A D | dfx_maps.cpp | 80 bool DfxMaps::Create(const pid_t pid, std::vector<std::shared_ptr<DfxMap>>& maps, std::vector<int>& mapIndex) in Create() 115 auto map = std::make_shared<DfxMap>(); in Parse() 121 DfxMap::FormatMapName(pid, map->name); in Parse() 189 void DfxMaps::AddMap(std::shared_ptr<DfxMap> map, bool enableMapIndex) in AddMap() 197 bool DfxMaps::FindMapByAddr(uintptr_t addr, std::shared_ptr<DfxMap>& map) const in FindMapByAddr() 226 bool DfxMaps::FindMapByFileInfo(std::string name, uint64_t offset, std::shared_ptr<DfxMap>& map) const in FindMapByFileInfo() 244 bool DfxMaps::FindMapsByName(std::string name, std::vector<std::shared_ptr<DfxMap>>& maps) const in FindMapsByName() 264 [](const std::shared_ptr<DfxMap>& a, const std::shared_ptr<DfxMap>& b) { in Sort() 274 [](const std::shared_ptr<DfxMap> in Sort() [all...] |
H A D | dfx_hap.cpp | 43 bool DfxHap::ParseHapInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, in ParseHapInfo() 74 bool DfxHap::ParseHapFileInfo(uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, JsFunction *jsFunction) in ParseHapFileInfo() 92 bool DfxHap::ParseHapMemInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, in ParseHapMemInfo() 142 bool DfxHap::ParseHapMemData(const pid_t pid, std::shared_ptr<DfxMap> map) in ParseHapMemData()
|
H A D | dfx_accessors.cpp | 46 bool DfxAccessors::GetMapByPcAndCtx(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) in GetMapByPcAndCtx() 155 int DfxAccessorsLocal::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) in GetMapByPc() 253 int DfxAccessorsRemote::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) in GetMapByPc() 285 int DfxAccessorsCustomize::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) in GetMapByPc()
|
H A D | dfx_frame_formatter.cpp | 63 DfxMap::UnFormatMapName(frame->mapName); in GetFrameStr()
|
H A D | unwinder.cpp | 214 std::shared_ptr<DfxMap> map = nullptr; 229 void AddFrame(const StepFrame& frame, std::shared_ptr<DfxMap> map); 909 std::shared_ptr<DfxMap> map = nullptr; in StepInner() 1154 void Unwinder::Impl::AddFrame(const StepFrame& frame, std::shared_ptr<DfxMap> map) in AddFrame() 1282 std::shared_ptr<DfxMap> map = nullptr; in GetFrameByPc() 1327 std::shared_ptr<DfxMap> map = nullptr; in GetFramesByPcs() 1362 std::shared_ptr<DfxMap> map = nullptr; in GetSymbolByPc()
|
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
H A D | elf_benchmark.cpp | 27 static void InitializeBuildId(benchmark::State& state, DfxMaps* dfxMaps, DfxMap** buildIdMap)
in InitializeBuildId() 57 DfxMap* buildIdMap;
in BenchmarkElfGetBuildIdFromObj()
|
H A D | maps_benchmark.cpp | 66 std::vector<std::shared_ptr<DfxMap>> maps {};
in BenchmarkMapsCreateMapIndex()
|
/base/hiviewdfx/faultloggerd/interfaces/common/ |
H A D | dfx_frame.h | 25 class DfxMap; 57 std::shared_ptr<DfxMap> map = nullptr;
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_unwind_async_thread.cpp | 93 std::vector<std::shared_ptr<DfxMap>> mapVec; in GetSubmitterStack() 145 std::shared_ptr<DfxMap> map; in UnwindThreadFallback()
|
H A D | dfx_fault_stack.cpp | 222 std::shared_ptr<DfxMap> map; in CollectRegistersBlock() 285 std::shared_ptr<DfxMap> map; in ParseUnwindStack()
|
H A D | dfx_stack_info_formatter.cpp | 177 DfxMap::UnFormatMapName(strippedMapName); in FillNativeFrame()
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/ |
H A D | thread_sampler.h | 95 static int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg);
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | thread_sampler.cpp | 83 std::shared_ptr<DfxMap> map;
in FindUnwindTable() 120 int ThreadSampler::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg)
in GetMapByPc() 275 std::shared_ptr<DfxMap> map;
in AccessElfMem()
|
/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/ |
H A D | faultloggerdunwinder_fuzzer.cpp | 195 auto map = std::make_shared<DfxMap>(); in TestDfxHap()
|