Home
last modified time | relevance | path

Searched refs:Elf (Results 1 – 25 of 45) 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::GetGlobalVariableOffset(const std::string& name, uint64_t* memory_offset) { in GetGlobalVariableOffset()
[all …]
DMapInfo.cpp50 if (!Elf::GetInfo(memory, &max_size) || max_size < map_size) { in InitFileMemoryFromPreviousReadOnlyMap()
93 if (Elf::GetInfo(memory.get(), &max_size)) { in GetFileMemory()
110 if (memory->Init(name, 0) && Elf::IsValidElf(memory.get())) { in GetFileMemory()
166 if (Elf::IsValidElf(memory.get())) { in CreateMemory()
195 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf()
205 if (Elf::CachingEnabled() && !name.empty()) { in GetElf()
206 Elf::CacheLock(); in GetElf()
208 if (Elf::CacheGet(this)) { in GetElf()
209 Elf::CacheUnlock(); in GetElf()
216 if (Elf::CacheAfterCreateMemory(this)) { in GetElf()
[all …]
DJitDebug.cpp184 Elf* JitDebug::GetElf(Maps* maps, uint64_t pc) { in GetElf()
193 for (Elf* elf : elf_list_) { in GetElf()
204 Elf* elf = new Elf(new MemoryRange(memory_, start, size, 0)); in GetElf()
DUnwinder.cpp95 FrameData* Unwinder::FillInFrame(MapInfo* map_info, Elf* elf, uint64_t rel_pc, in FillInFrame()
161 Elf* elf; in Unwind()
194 Elf* jit_elf = jit_debug_->GetElf(maps_, adjusted_jit_pc); in Unwind()
409 Elf* elf = map_info->GetElf(GetProcessMemory(), arch); in BuildFrameFromPcOnly()
422 Elf* jit_elf = jit_debug.GetElf(maps, jit_pc); in BuildFrameFromPcOnly()
/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.cpp245 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
251 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
258 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
267 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
276 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
287 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
297 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
302 Elf* elf2 = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
337 Elf* elf = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
342 Elf* elf2 = jit_debug_->GetElf(maps_.get(), 0x1500); in TEST_F()
[all …]
DElfTest.cpp113 Elf elf(memory_); in TEST_F()
120 Elf elf(memory_); in TEST_F()
146 Elf elf(memory_); in TEST_F()
159 Elf elf(memory_); in TEST_F()
172 Elf elf(memory_); in TEST_F()
184 Elf elf(memory_); in TEST_F()
196 Elf elf(memory_); in TEST_F()
208 Elf elf(memory_); in TEST_F()
220 Elf elf(memory_); in TEST_F()
232 Elf elf(memory_); in TEST_F()
[all …]
DRegsFake.h57 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument
88 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument
/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_;
DRegs.h30 class Elf; variable
71 virtual bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) = 0;
115 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf, ArchEnum arch);
DMapInfo.h63 std::shared_ptr<Elf> elf;
96 Elf* GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch);
DRegsMips.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsArm.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsMips64.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86_64.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DUnwinder.h37 class Elf; variable
128 FrameData* FillInFrame(MapInfo* map_info, Elf* elf, uint64_t rel_pc, uint64_t pc_adjustment);
DRegsArm64.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DLocalUnwinder.h35 class Elf; variable
/system/core/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.h45 using unwindstack::Elf;
77 Elf* elf = nullptr);
/system/core/libunwindstack/tools/
Dunwind_info.cpp41 void DumpArm(Elf* elf, ElfInterfaceArm* interface) { in DumpArm()
85 void DumpDwarfSection(Elf* elf, DwarfSection* section, uint64_t) { in DumpDwarfSection()
109 Elf elf(Memory::CreateFileMemory(file, offset).release()); in GetElfInfo()
/system/core/libunwindstack/benchmarks/
DElfBenchmark.cpp48 unwindstack::Elf elf(file_memory.release()); in BenchmarkElfCreate()
107 unwindstack::Elf* elf = build_id_map_info->GetElf(std::shared_ptr<unwindstack::Memory>(), in BM_elf_get_build_id_from_object()
/system/extras/simpleperf/
DOfflineUnwinder_impl.h38 unwindstack::Elf::SetCachingEnabled(true); in OfflineUnwinderImpl()

12