Searched refs:elf (Results 1 – 10 of 10) sorted by relevance
/system/core/libunwindstack/tests/ |
D | ElfTest.cpp | 137 Elf elf(memory_); in TEST_F() local 139 ASSERT_FALSE(elf.Init()); in TEST_F() 140 ASSERT_FALSE(elf.valid()); in TEST_F() 144 Elf elf(memory_); in TEST_F() local 151 ASSERT_FALSE(elf.Init()); in TEST_F() 152 ASSERT_FALSE(elf.valid()); in TEST_F() 153 ASSERT_TRUE(elf.interface() == nullptr); in TEST_F() 156 ASSERT_FALSE(elf.GetSoname(&name)); in TEST_F() 159 ASSERT_FALSE(elf.GetFunctionName(0, &name, &func_offset)); in TEST_F() 161 ASSERT_FALSE(elf.Step(0, nullptr, nullptr)); in TEST_F() [all …]
|
D | ElfInterfaceTest.cpp | 75 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in SinglePtLoad() local 93 ASSERT_TRUE(elf->Init()); in SinglePtLoad() 95 const std::unordered_map<uint64_t, LoadInfo>& pt_loads = elf->pt_loads(); in SinglePtLoad() 113 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in MultipleExecutablePtLoads() local 149 ASSERT_TRUE(elf->Init()); in MultipleExecutablePtLoads() 151 const std::unordered_map<uint64_t, LoadInfo>& pt_loads = elf->pt_loads(); in MultipleExecutablePtLoads() 180 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() local 216 ASSERT_TRUE(elf->Init()); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() 218 const std::unordered_map<uint64_t, LoadInfo>& pt_loads = elf->pt_loads(); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() 249 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in NonExecutablePtLoads() local [all …]
|
/system/extras/simpleperf/ |
D | read_elf.cpp | 144 ElfStatus GetBuildIdFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf, BuildId* build_id) { in GetBuildIdFromELFFile() argument 145 for (auto it = elf->section_begin(); it != elf->section_end(); ++it) { in GetBuildIdFromELFFile() 161 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(obj)) { in GetBuildIdFromObjectFile() local 162 return GetBuildIdFromELFFile(elf, build_id); in GetBuildIdFromObjectFile() 163 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(obj)) { in GetBuildIdFromObjectFile() local 164 return GetBuildIdFromELFFile(elf, build_id); in GetBuildIdFromObjectFile() 240 ElfStatus ReadSectionFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf, const std::string& s… in ReadSectionFromELFFile() argument 242 for (llvm::object::section_iterator it = elf->section_begin(); it != elf->section_end(); ++it) { in ReadSectionFromELFFile() 319 void AddSymbolForPltSection(const llvm::object::ELFObjectFile<ELFT>* elf, in AddSymbolForPltSection() argument 327 for (auto it = elf->section_begin(); it != elf->section_end(); ++it) { in AddSymbolForPltSection() [all …]
|
D | report_sample.proto | 22 // virtual address of the instruction in elf file 25 // index of the elf file containing the instruction
|
D | read_apk.cpp | 44 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByOffsetWithoutCache(apk_path, file_offset); in FindElfInApkByOffset() local 45 EmbeddedElf* result = elf.get(); in FindElfInApkByOffset() 46 embedded_elf_cache_[ami] = std::move(elf); in FindElfInApkByOffset()
|
/system/core/libunwindstack/ |
D | Regs.cpp | 33 uint64_t RegsTmpl<AddressType>::GetRelPc(Elf* elf, const MapInfo* map_info) { in GetRelPc() argument 35 if (elf->valid()) { in GetRelPc() 36 load_bias = elf->interface()->load_bias(); in GetRelPc() 66 uint64_t RegsArm::GetAdjustedPc(uint64_t rel_pc, Elf* elf) { in GetAdjustedPc() argument 67 if (!elf->valid()) { in GetAdjustedPc() 71 uint64_t load_bias = elf->interface()->load_bias(); in GetAdjustedPc() 84 if (rel_pc < 5 || !elf->memory()->Read(adjusted_rel_pc - 5, &value, sizeof(value)) || in GetAdjustedPc() 96 uint64_t RegsArm64::GetAdjustedPc(uint64_t rel_pc, Elf* elf) { in GetAdjustedPc() argument 97 if (!elf->valid()) { in GetAdjustedPc() 111 uint64_t RegsX86::GetAdjustedPc(uint64_t rel_pc, Elf* elf) { in GetAdjustedPc() argument [all …]
|
D | Regs.h | 53 virtual uint64_t GetRelPc(Elf* elf, const MapInfo* map_info) = 0; 55 virtual uint64_t GetAdjustedPc(uint64_t rel_pc, Elf* elf) = 0; 75 uint64_t GetRelPc(Elf* elf, const MapInfo* map_info) override; 100 uint64_t GetAdjustedPc(uint64_t rel_pc, Elf* elf) override; 108 uint64_t GetAdjustedPc(uint64_t rel_pc, Elf* elf) override; 116 uint64_t GetAdjustedPc(uint64_t rel_pc, Elf* elf) override; 124 uint64_t GetAdjustedPc(uint64_t rel_pc, Elf* elf) override;
|
D | unwind_info.cpp | 108 Elf elf(memory); in main() local 109 if (!elf.Init() || !elf.valid()) { in main() 114 ElfInterface* interface = elf.interface(); in main() 115 if (elf.machine_type() == EM_ARM) { in main()
|
D | MapInfo.h | 34 Elf* elf = nullptr; member
|
/system/core/libbacktrace/ |
D | BacktraceOffline.cpp | 651 DebugFrameInfo* ReadDebugFrameFromELFFile(const llvm::object::ELFFile<ELFT>* elf) { in ReadDebugFrameFromELFFile() argument 658 for (auto it = elf->section_begin(); it != elf->section_end(); ++it) { in ReadDebugFrameFromELFFile() 659 llvm::ErrorOr<llvm::StringRef> name = elf->getSectionName(&*it); in ReadDebugFrameFromELFFile() 668 llvm::ErrorOr<llvm::ArrayRef<uint8_t>> data = elf->getSectionContents(&*it); in ReadDebugFrameFromELFFile() 690 llvm::ErrorOr<llvm::ArrayRef<uint8_t>> data = elf->getSectionContents(&*it); in ReadDebugFrameFromELFFile() 698 llvm::ErrorOr<llvm::ArrayRef<uint8_t>> data = elf->getSectionContents(&*it); in ReadDebugFrameFromELFFile() 721 llvm::ErrorOr<llvm::ArrayRef<uint8_t>> data = elf->getSectionContents(&*it); in ReadDebugFrameFromELFFile() 737 for (auto it = elf->program_header_begin(); it != elf->program_header_end(); ++it) { in ReadDebugFrameFromELFFile() 873 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(obj)) { in ReadDebugFrameFromFile() local 874 return ReadDebugFrameFromELFFile(elf->getELFFile()); in ReadDebugFrameFromFile() [all …]
|