Home
last modified time | relevance | path

Searched refs:DfxMap (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dmaps_test.cpp78 std::shared_ptr<DfxMap> map = nullptr;
92 std::shared_ptr<DfxMap> map = nullptr;
109 std::vector<std::shared_ptr<DfxMap>> mapsV;
124 std::shared_ptr<DfxMap> map = nullptr;
125 map = std::make_shared<DfxMap>(0, 0, 0, "1", "anon:ArkTS Code");
127 map = std::make_shared<DfxMap>(0, 0, 0, "1", "/dev/zero");
129 map = std::make_shared<DfxMap>(0, 0, 0, 4, "[anon:ArkTS Code]");
149 shared_ptr<DfxMap> map = DfxMap::Create(INVALID_MAP_ITEM, sizeof(INVALID_MAP_ITEM));
162 shared_ptr<DfxMap> map = DfxMap::Create(VALID_MAP_ITEM, sizeof(VALID_MAP_ITEM));
240 shared_ptr<DfxMap> map = DfxMap::Create(VDSO_MAP_ITEM, sizeof(VDSO_MAP_ITEM));
H A Ddfx_hap_test.cpp48 auto map = std::make_shared<DfxMap>();
71 auto map = std::make_shared<DfxMap>();
119 auto map = std::make_shared<DfxMap>();
H A Dunwinder_test.cpp432 std::shared_ptr<DfxMap> map = nullptr;
674 auto map = DfxMap::Create(testMap, sizeof(testMap));
684 map = DfxMap::Create(testMap, sizeof(testMap));
707 auto map = DfxMap::Create(testMap, sizeof(testMap));
732 auto map = DfxMap::Create(testMap, sizeof(testMap));
H A Dmemory_test.cpp492 std::vector<std::shared_ptr<DfxMap>> shmmMaps;
494 std::shared_ptr<DfxMap> shmmMap = nullptr;
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_map.h30 class DfxMap {
32 static std::shared_ptr<DfxMap> Create(std::string buf, size_t size);
35 DfxMap() = default;
36 DfxMap(uint64_t begin, uint64_t end, uint64_t offset, in DfxMap() function
39 DfxMap(uint64_t begin, uint64_t end, uint64_t offset, in DfxMap() function
65 std::shared_ptr<DfxMap> prevMap = nullptr;
78 inline bool operator<(const DfxMap &other) const
90 static bool ValueLessThen(uint64_t vaddr, const DfxMap &a) in ValueLessThen()
94 static bool ValueLessEqual(uint64_t vaddr, const DfxMap &a) in ValueLessEqual()
H A Ddfx_maps.h34 …static bool Create(const pid_t pid, std::vector<std::shared_ptr<DfxMap>>& maps, std::vector<int>& …
42 void AddMap(std::shared_ptr<DfxMap> map, bool enableMapIndex = false);
46 bool FindMapByAddr(uintptr_t addr, std::shared_ptr<DfxMap>& map) const;
47 bool FindMapByFileInfo(std::string name, uint64_t offset, std::shared_ptr<DfxMap>& map) const;
48 bool FindMapsByName(std::string name, std::vector<std::shared_ptr<DfxMap>>& maps) const;
49 const std::vector<std::shared_ptr<DfxMap>>& GetMaps() const { return maps_; } in GetMaps()
60 std::vector<std::shared_ptr<DfxMap>> maps_ {};
H A Ddfx_hap.h25 class DfxMap; variable
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 *js…
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; variable
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; variable
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> prev…
75 int FindUnwindTableInfo(uintptr_t pc, std::shared_ptr<DfxMap> map, struct UnwindTableInfo& uti);
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_map.cpp195 std::shared_ptr<DfxMap> DfxMap::Create(std::string buf, size_t size) in Create()
200 auto map = std::make_shared<DfxMap>(); in Create()
208 bool DfxMap::Parse(char* buf, size_t size) in Parse()
258 bool DfxMap::IsMapExec() in IsMapExec()
266 bool DfxMap::IsArkExecutable() in IsArkExecutable()
284 bool DfxMap::IsVdsoMap() in IsVdsoMap()
292 uint64_t DfxMap::GetRelPc(uint64_t pc) in GetRelPc()
300 std::string DfxMap::ToString() in ToString()
333 const std::shared_ptr<DfxHap> DfxMap::GetHap() in GetHap()
341 const std::shared_ptr<DfxElf> DfxMap::GetElf(pid_t pid) in GetElf()
[all …]
H A Ddfx_maps.cpp80 bool DfxMaps::Create(const pid_t pid, std::vector<std::shared_ptr<DfxMap>>& maps, std::vector<int>&… in Create()
115 auto map = std::make_shared<DfxMap>(); in Parse()
210 void DfxMaps::AddMap(std::shared_ptr<DfxMap> map, bool enableMapIndex) in AddMap()
218 bool DfxMaps::FindMapByAddr(uintptr_t addr, std::shared_ptr<DfxMap>& map) const in FindMapByAddr()
247 bool DfxMaps::FindMapByFileInfo(std::string name, uint64_t offset, std::shared_ptr<DfxMap>& map) co… in FindMapByFileInfo()
264 bool DfxMaps::FindMapsByName(std::string name, std::vector<std::shared_ptr<DfxMap>>& maps) const in FindMapsByName()
284 [](const std::shared_ptr<DfxMap>& a, const std::shared_ptr<DfxMap>& b) { in Sort()
294 [](const std::shared_ptr<DfxMap>& a, const std::shared_ptr<DfxMap>& b) { in Sort()
317 std::shared_ptr<DfxMap> map = nullptr; in IsArkExecutedMap()
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, JsFunct… in ParseHapFileInfo()
92 bool DfxHap::ParseHapMemInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> ma… in ParseHapMemInfo()
142 bool DfxHap::ParseHapMemData(const pid_t pid, std::shared_ptr<DfxMap> map) in ParseHapMemData()
H A Dlibunwinder.map53 OHOS::HiviewDFX::DfxMap::ToString*;
54 OHOS::HiviewDFX::DfxMap::GetElf*;
55 OHOS::HiviewDFX::DfxMap::Create*;
56 OHOS::HiviewDFX::DfxMap::GetRelPc*;
95 OHOS::HiviewDFX::DfxMap::IsMapExec*;
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 Dunwinder.cpp224 std::shared_ptr<DfxMap> map = nullptr;
239 void AddFrame(const StepFrame& frame, std::shared_ptr<DfxMap> map);
914 std::shared_ptr<DfxMap> map = nullptr; in StepInner()
1159 void Unwinder::Impl::AddFrame(const StepFrame& frame, std::shared_ptr<DfxMap> map) in AddFrame()
1304 std::shared_ptr<DfxMap> map = nullptr; in GetFrameByPc()
1349 std::shared_ptr<DfxMap> map = nullptr; in GetFramesByPcs()
1384 std::shared_ptr<DfxMap> map = nullptr; in GetSymbolByPc()
/ohos5.0/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()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/common/
H A Ddfx_frame.h25 class DfxMap; variable
57 std::shared_ptr<DfxMap> map = nullptr;
/ohos5.0/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 Dprinter.cpp120 std::vector<std::shared_ptr<DfxMap>> map; in PrintReason()
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dthread_sampler.cpp69 std::shared_ptr<DfxMap> map; in FindUnwindTable()
106 int ThreadSampler::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) in GetMapByPc()
231 std::shared_ptr<DfxMap> map; in AccessElfMem()
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/
H A Dthread_sampler.h93 static int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg);
/ohos5.0/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/
H A Dfaultloggerdunwinder_fuzzer.cpp195 auto map = std::make_shared<DfxMap>(); in TestDfxHap()

12