Home
last modified time | relevance | path

Searched refs:DfxElf (Results 1 - 13 of 13) sorted by relevance

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_elf.cpp53 #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 Ddfx_symbols.cpp73 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 Ddfx_map.cpp345 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 Ddfx_accessors.cpp147 ret = DfxElf::FindUnwindTableLocal(pc, uti); in FindUnwindTable()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_elf.h32 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 Ddfx_symbols.h33 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 Ddfx_map.h27 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 Delf_test.cpp49 * @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 Dsymbols_test.cpp52 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 Dxz_util_test.cpp51 DfxElf elf(DUMPCATCHER_ELF_FILE); in HWTEST_F()
H A Ddwarf_test.cpp528 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 Dmemory_test.cpp504 auto shmmElf = std::make_shared<DfxElf>(shmmData->data(), shmmMap->end - shmmMap->begin); in HWTEST_F()
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_fault_stack.cpp299 auto elf = DfxElf::Create(frame.mapName); in ParseUnwindStack()
301 DFXLOGE("%{public}s : Failed to create DfxElf, elf path(%{public}s).", __func__, in ParseUnwindStack()

Completed in 8 milliseconds