Home
last modified time | relevance | path

Searched refs:Elf (Results 1 – 25 of 41) sorted by relevance

12

/system/core/libunwindstack/
DElf.cpp39 bool Elf::cache_enabled_;
40 std::unordered_map<std::string, std::pair<std::shared_ptr<Elf>, bool>>* Elf::cache_;
41 std::mutex* Elf::cache_lock_;
43 bool Elf::Init() { in Init()
66 void Elf::InitGnuDebugdata() { in InitGnuDebugdata()
91 void Elf::Invalidate() { in Invalidate()
96 std::string Elf::GetSoname() { in GetSoname()
104 uint64_t Elf::GetRelPc(uint64_t pc, const MapInfo* map_info) { in GetRelPc()
108 bool Elf::GetFunctionName(uint64_t addr, std::string* name, uint64_t* func_offset) { in GetFunctionName()
115 bool Elf::GetGlobalVariable(const std::string& name, uint64_t* memory_address) { in GetGlobalVariable()
[all …]
DMapInfo.cpp47 if (!Elf::GetInfo(memory, &max_size) || max_size < map_size) { in InitFileMemoryFromPreviousReadOnlyMap()
90 if (Elf::GetInfo(memory.get(), &max_size)) { in GetFileMemory()
107 if (memory->Init(name, 0) && Elf::IsValidElf(memory.get())) { in GetFileMemory()
163 if (Elf::IsValidElf(memory.get())) { in CreateMemory()
192 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf()
202 if (Elf::CachingEnabled() && !name.empty()) { in GetElf()
203 Elf::CacheLock(); in GetElf()
205 if (Elf::CacheGet(this)) { in GetElf()
206 Elf::CacheUnlock(); in GetElf()
213 if (Elf::CacheAfterCreateMemory(this)) { in GetElf()
[all …]
DJitDebug.cpp183 Elf* JitDebug::GetElf(Maps* maps, uint64_t pc) { in GetElf()
192 for (Elf* elf : elf_list_) { in GetElf()
203 Elf* elf = new Elf(new MemoryRange(memory_, start, size, 0)); in GetElf()
DRegsArm64.cpp55 uint64_t RegsArm64::GetPcAdjustment(uint64_t rel_pc, Elf*) { in GetPcAdjustment() argument
127 bool RegsArm64::StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) { in StepIfSignalHandler()
DRegsArm.cpp54 uint64_t RegsArm::GetPcAdjustment(uint64_t rel_pc, Elf* elf) { in GetPcAdjustment()
130 bool RegsArm::StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) { in StepIfSignalHandler()
DRegsMips64.cpp55 uint64_t RegsMips64::GetPcAdjustment(uint64_t rel_pc, Elf*) { in GetPcAdjustment() argument
130 bool RegsMips64::StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) { in StepIfSignalHandler()
DRegsMips.cpp55 uint64_t RegsMips::GetPcAdjustment(uint64_t rel_pc, Elf*) { in GetPcAdjustment() argument
132 bool RegsMips::StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) { in StepIfSignalHandler()
/system/core/libunwindstack/tests/
DElfCacheTest.cpp36 void SetUp() override { Elf::SetCachingEnabled(true); } in SetUp()
38 void TearDown() override { Elf::SetCachingEnabled(false); } in TearDown()
71 Elf::SetCachingEnabled(false); in VerifySameMap()
84 Elf* elf1 = info1.GetElf(memory_, ARCH_ARM); in VerifySameMap()
86 Elf* elf2 = info2.GetElf(memory_, ARCH_ARM); in VerifySameMap()
106 Elf::SetCachingEnabled(false); in VerifyWithinSameMap()
134 Elf* elf0_1 = info0_1.GetElf(memory_, ARCH_ARM); in VerifyWithinSameMap()
137 Elf* elf0_2 = info0_2.GetElf(memory_, ARCH_ARM); in VerifyWithinSameMap()
148 Elf* elf100_1 = info100_1.GetElf(memory_, ARCH_X86); in VerifyWithinSameMap()
151 Elf* elf100_2 = info100_2.GetElf(memory_, ARCH_X86); in VerifyWithinSameMap()
[all …]
DMapInfoGetElfTest.cpp74 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
86 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
106 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F()
120 Elf* elf = info.GetElf(process_memory_, ARCH_X86); in TEST_F()
133 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
149 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F()
164 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
194 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
223 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
256 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
[all …]
DJitDebugTest.cpp241 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
247 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
254 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
263 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
272 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
283 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
293 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
298 Elf* elf2 = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
333 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
338 Elf* elf2 = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
[all …]
DRegsFake.h57 uint64_t GetPcAdjustment(uint64_t, Elf*) override { return 2; } in GetPcAdjustment() argument
59 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument
89 uint64_t GetPcAdjustment(uint64_t, Elf*) override { return 0; } in GetPcAdjustment() argument
91 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument
DElfTest.cpp111 Elf elf(memory_); in TEST_F()
118 Elf elf(memory_); in TEST_F()
144 Elf elf(memory_); in TEST_F()
157 Elf elf(memory_); in TEST_F()
170 Elf elf(memory_); in TEST_F()
182 Elf elf(memory_); in TEST_F()
194 Elf elf(memory_); in TEST_F()
206 Elf elf(memory_); in TEST_F()
218 Elf elf(memory_); in TEST_F()
230 Elf elf(memory_); in TEST_F()
[all …]
DElfFake.h49 class ElfFake : public Elf {
51 ElfFake(Memory* memory) : Elf(memory) { valid_ = true; } in ElfFake()
/system/core/libunwindstack/include/unwindstack/
DJitDebug.h33 class Elf; variable
43 Elf* GetElf(Maps* maps, uint64_t pc);
64 std::vector<Elf*> elf_list_;
DElf.h51 class Elf {
53 Elf(Memory* memory) : memory_(memory) {} in Elf() function
54 virtual ~Elf() = default;
132 static std::unordered_map<std::string, std::pair<std::shared_ptr<Elf>, bool>>* cache_;
DRegsMips.h39 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf) override;
43 bool StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) override;
DRegsArm64.h39 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf) override;
43 bool StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) override;
DRegsArm.h39 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf) override;
43 bool StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) override;
DRegsMips64.h39 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf) override;
43 bool StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) override;
DRegsX86_64.h40 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf) override;
44 bool StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) override;
DRegsX86.h40 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf) override;
44 bool StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) override;
DRegs.h30 class Elf; variable
67 virtual uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf) = 0;
69 virtual bool StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_memory) = 0;
DMapInfo.h60 std::shared_ptr<Elf> elf;
82 Elf* GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch);
DUnwinder.h37 class Elf; variable
123 FrameData* FillInFrame(MapInfo* map_info, Elf* elf, uint64_t rel_pc, uint64_t pc_adjustment);
/system/core/libunwindstack/tools/
Dunwind_info.cpp40 void DumpArm(Elf* elf, ElfInterfaceArm* interface) { in DumpArm()
84 void DumpDwarfSection(Elf* elf, DwarfSection* section, uint64_t) { in DumpDwarfSection()
115 Elf elf(memory); in GetElfInfo()

12