/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_elf.cpp | 53 #define LOG_TAG "DfxElf"
56 std::shared_ptr<DfxElf> DfxElf::Create(const std::string& path)
in Create() 58 auto elf = std::make_shared<DfxElf>(path);
in Create() 65 std::shared_ptr<DfxElf> DfxElf::CreateFromHap(const std::string& file, std::shared_ptr<DfxMap> prevMap,
in CreateFromHap() 108 auto elf = std::make_shared<DfxElf>(fd, elfSize, prevMap->offset);
in CreateFromHap() 119 DfxElf::DfxElf(const std::string& file)
in DfxElf() function in OHOS::HiviewDFX::DfxElf 155 DfxElf function in OHOS::HiviewDFX::DfxElf 166 DfxElf::DfxElf(uint8_t *decompressedData, size_t size) DfxElf() function in OHOS::HiviewDFX::DfxElf [all...] |
H A D | dfx_symbols.cpp | 73 bool DfxSymbols::ParseSymbols(std::vector<DfxSymbol>& symbols, std::shared_ptr<DfxElf> elf, const std::string& filePath) in ParseSymbols() 90 bool DfxSymbols::AddSymbolsByPlt(std::vector<DfxSymbol>& symbols, std::shared_ptr<DfxElf> elf, in AddSymbolsByPlt() 102 bool DfxSymbols::GetFuncNameAndOffsetByPc(uint64_t relPc, std::shared_ptr<DfxElf> elf, in GetFuncNameAndOffsetByPc()
|
H A D | dfx_map.cpp | 345 const std::shared_ptr<DfxElf> DfxMap::GetElf(pid_t pid) in GetElf() 354 elf = DfxElf::CreateFromHap(name, prevMap, offset); in GetElf() 364 elf = std::make_shared<DfxElf>(shmmData->data(), byte); in GetElf() 367 elf = DfxElf::Create(name); in GetElf()
|
H A D | dfx_accessors.cpp | 147 ret = DfxElf::FindUnwindTableLocal(pc, uti); in FindUnwindTable()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_elf.h | 32 class DfxElf final {
34 static std::shared_ptr<DfxElf> Create(const std::string& file);
35 static std::shared_ptr<DfxElf> CreateFromHap(const std::string& file, std::shared_ptr<DfxMap> prevMap,
37 explicit DfxElf(const std::string& file);
38 explicit DfxElf(const int fd, const size_t elfSz, const off_t offset);
39 DfxElf(uint8_t *decompressedData, size_t size);
40 ~DfxElf() { Clear(); }
in ~DfxElf() 79 std::shared_ptr<DfxElf> GetEmbeddedElf();
111 std::shared_ptr<DfxElf> embeddedElf_ = nullptr;
|
H A D | dfx_symbols.h | 33 std::shared_ptr<DfxElf> elf, const std::string& filePath); 35 std::shared_ptr<DfxElf> elf, const std::string& filePath); 37 static bool GetFuncNameAndOffsetByPc(uint64_t relPc, std::shared_ptr<DfxElf> elf,
|
H A D | dfx_map.h | 27 class DfxElf; 50 const std::shared_ptr<DfxElf> GetElf(pid_t pid = 0); 65 std::shared_ptr<DfxElf> elf = nullptr;
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | elf_test.cpp | 49 * @tc.desc: test DfxElf functions with 32 bit ELF 55 DfxElf elf(ELF32_FILE); in HWTEST_F() 86 EXPECT_NE(DfxElf::Create(ELF32_FILE), nullptr); in HWTEST_F() 95 * @tc.desc: test DfxElf functions with 64 bit ELF 101 DfxElf elf(ELF64_FILE); in HWTEST_F() 140 * @tc.desc: test DfxElf functions with using error 146 DfxElf elf(""); in HWTEST_F() 151 EXPECT_EQ(DfxElf::Create("123"), nullptr); in HWTEST_F() 152 ASSERT_TRUE(DfxElf::ToReadableBuildId("").empty()); in HWTEST_F() 162 * @tc.desc: test DfxElf clas [all...] |
H A D | symbols_test.cpp | 52 std::shared_ptr<DfxElf> elf = make_shared<DfxElf>(ELF32_FILE); in HWTEST_F() 93 std::shared_ptr<DfxElf> elf = make_shared<DfxElf>(ELF64_FILE); in HWTEST_F() 138 std::shared_ptr<DfxElf> elf = make_shared<DfxElf>(DUMPCATCHER_ELF_FILE); in HWTEST_F()
|
H A D | xz_util_test.cpp | 51 DfxElf elf(DUMPCATCHER_ELF_FILE); in HWTEST_F()
|
H A D | dwarf_test.cpp | 528 ASSERT_EQ(DfxElf::FindUnwindTableLocal(pc, uti), 0); in HWTEST_F() 736 auto elf = DfxElf::Create("/data/test/dwarf_test_aarch64_elf"); in HWTEST_F()
|
H A D | memory_test.cpp | 504 auto shmmElf = std::make_shared<DfxElf>(shmmData->data(), shmmMap->end - shmmMap->begin); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_fault_stack.cpp | 299 auto elf = DfxElf::Create(frame.mapName); in ParseUnwindStack() 301 DFXLOGE("%{public}s : Failed to create DfxElf, elf path(%{public}s).", __func__, in ParseUnwindStack()
|