Home
last modified time | relevance | path

Searched refs:DfxMap (Results 1 - 25 of 28) sorted by relevance

12

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_maps.h34 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 Ddfx_map.h30 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 Ddfx_hap.h25 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 Ddfx_accessors.h35 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 Dunwind_context.h30 class DfxMap;
61 int (*GetMapByPc)(uintptr_t, std::shared_ptr<DfxMap> &, void *);
71 std::shared_ptr<DfxMap> map = nullptr;
H A Ddfx_elf.h35 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 Dmaps_test.cpp78 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 Ddfx_hap_test.cpp48 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 Dunwinder_test.cpp432 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 Dmemory_test.cpp492 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 Ddfx_map.cpp39 #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 Ddfx_maps.cpp80 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 Ddfx_hap.cpp43 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 Ddfx_accessors.cpp46 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 Ddfx_frame_formatter.cpp63 DfxMap::UnFormatMapName(frame->mapName); in GetFrameStr()
H A Dunwinder.cpp214 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 Delf_benchmark.cpp27 static void InitializeBuildId(benchmark::State& state, DfxMaps* dfxMaps, DfxMap** buildIdMap) in InitializeBuildId()
57 DfxMap* buildIdMap; in BenchmarkElfGetBuildIdFromObj()
H A Dmaps_benchmark.cpp66 std::vector<std::shared_ptr<DfxMap>> maps {}; in BenchmarkMapsCreateMapIndex()
/base/hiviewdfx/faultloggerd/interfaces/common/
H A Ddfx_frame.h25 class DfxMap;
57 std::shared_ptr<DfxMap> map = nullptr;
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_unwind_async_thread.cpp93 std::vector<std::shared_ptr<DfxMap>> mapVec; in GetSubmitterStack()
145 std::shared_ptr<DfxMap> map; in UnwindThreadFallback()
H A Ddfx_fault_stack.cpp222 std::shared_ptr<DfxMap> map; in CollectRegistersBlock()
285 std::shared_ptr<DfxMap> map; in ParseUnwindStack()
H A Ddfx_stack_info_formatter.cpp177 DfxMap::UnFormatMapName(strippedMapName); in FillNativeFrame()
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/
H A Dthread_sampler.h95 static int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg);
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dthread_sampler.cpp83 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 Dfaultloggerdunwinder_fuzzer.cpp195 auto map = std::make_shared<DfxMap>(); in TestDfxHap()

Completed in 14 milliseconds

12