Home
last modified time | relevance | path

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

12

/system/unwinding/libunwindstack/
DElf.cpp44 bool Elf::cache_enabled_;
45 std::unordered_map<std::string, std::unordered_map<uint64_t, std::shared_ptr<Elf>>>* Elf::cache_;
46 std::mutex* Elf::cache_lock_;
48 bool Elf::Init() { in Init()
71 void Elf::InitGnuDebugdata() { in InitGnuDebugdata()
96 void Elf::Invalidate() { in Invalidate()
101 std::string Elf::GetSoname() { in GetSoname()
109 uint64_t Elf::GetRelPc(uint64_t pc, MapInfo* map_info) { in GetRelPc()
113 bool Elf::GetFunctionName(uint64_t addr, SharedString* name, uint64_t* func_offset) { in GetFunctionName()
120 bool Elf::GetGlobalVariableOffset(const std::string& name, uint64_t* memory_offset) { in GetGlobalVariableOffset()
[all …]
DMapInfo.cpp90 if (!Elf::GetInfo(memory, &max_size) || max_size < map_size) { in InitFileMemoryFromPreviousReadOnlyMap()
142 if (Elf::GetInfo(memory.get(), &max_size)) { in GetFileMemory()
159 if (memory->Init(name(), 0) && Elf::IsValidElf(memory.get())) { in GetFileMemory()
210 if (Elf::IsValidElf(memory.get())) { in CreateMemory()
265 if (Elf::CachingEnabled()) Elf::CacheLock(); in ScopedElfCacheLock()
268 if (Elf::CachingEnabled()) Elf::CacheUnlock(); in ~ScopedElfCacheLock()
272 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf()
281 if (Elf::CachingEnabled() && !name().empty()) { in GetElf()
282 if (Elf::CacheGet(this)) { in GetElf()
287 elf().reset(new Elf(CreateMemory(process_memory))); in GetElf()
[all …]
DJitDebug.cpp27 bool GlobalDebugInterface<Elf>::Load(Maps*, std::shared_ptr<Memory>& memory, uint64_t addr, in Load()
28 uint64_t size, /*out*/ std::shared_ptr<Elf>& elf) { in Load()
33 elf.reset(new Elf(copy.release())); in Load()
39 return CreateGlobalDebugImpl<Elf>(arch, memory, search_libs, "__jit_debug_descriptor"); in CreateJitDebug()
DUnwinder.cpp88 FrameData* Unwinder::FillInFrame(std::shared_ptr<MapInfo>& map_info, Elf* /*elf*/, uint64_t rel_pc, in FillInFrame() argument
146 Elf* elf; in Unwind()
183 Elf* jit_elf = jit_debug_->Find(maps_, adjusted_jit_pc); in Unwind()
429 Elf* elf = map_info->GetElf(process_memory, arch); in BuildFrameFromPcOnly()
441 Elf* jit_elf = jit_debug->Find(maps, jit_pc); in BuildFrameFromPcOnly()
/system/unwinding/libunwindstack/tests/
DElfCacheTest.cpp44 Elf::SetCachingEnabled(true); in SetUp()
111 void TearDown() override { Elf::SetCachingEnabled(false); } in TearDown()
137 Elf* elf_one = maps_->Find(0x1000)->GetElf(memory_, ARCH_ARM); in TEST_F()
139 Elf* elf_two = maps_->Find(0x2000)->GetElf(memory_, ARCH_ARM); in TEST_F()
141 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
172 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
182 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
192 Elf* elf_three = maps_->Find(0x5000)->GetElf(memory_, ARCH_ARM); in TEST_F()
202 Elf* elf_three = maps_->Find(0x5000)->GetElf(memory_, ARCH_ARM); in TEST_F()
212 Elf* app_one_elf1 = maps_->Find(0x7000)->GetElf(memory_, ARCH_ARM); in TEST_F()
[all …]
DMapInfoGetElfTest.cpp76 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
87 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
106 Elf* elf = info->GetElf(process_memory_, ARCH_ARM64); in TEST_F()
119 Elf* elf = info->GetElf(process_memory_, ARCH_X86); in TEST_F()
131 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
146 Elf* elf = info->GetElf(process_memory_, ARCH_ARM64); in TEST_F()
160 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
189 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
218 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
251 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
[all …]
DJitDebugTest.cpp257 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
263 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
270 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
279 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
288 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
299 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
309 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
319 Elf* elf2 = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
353 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
358 Elf* elf2 = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
[all …]
DElfTest.cpp114 Elf elf(memory_); in TEST_F()
121 Elf elf(memory_); in TEST_F()
167 Elf elf(memory_); in TEST_F()
179 Elf elf(memory_); in TEST_F()
191 Elf elf(memory_); in TEST_F()
203 Elf elf(memory_); in TEST_F()
215 Elf elf(memory_); in TEST_F()
227 Elf elf(memory_); in TEST_F()
239 Elf elf(memory_); in TEST_F()
251 Elf elf(memory_); in TEST_F()
[all …]
DGlobalDebugImplTest.cpp37 GlobalDebugImpl<Elf, uint64_t, Uint64_P> debug(ARCH_X86_64, memory, libs, nullptr); in TEST()
46 GlobalDebugImpl<Elf, uint64_t, Uint64_P> debug(ARCH_ARM64, memory, libs, nullptr); in TEST()
/system/unwinding/libunwindstack/include/unwindstack/
DElf.h46 class Elf {
48 Elf(Memory* memory) : memory_(memory) {} in Elf() function
49 virtual ~Elf() = default;
138 static std::unordered_map<std::string, std::unordered_map<uint64_t, std::shared_ptr<Elf>>>*
DJitDebug.h29 class Elf; variable
32 using JitDebug = GlobalDebugInterface<Elf>;
DMapInfo.h78 std::shared_ptr<Elf> elf_;
131 inline Elf* GetElfObj() { in GetElfObj()
152 inline std::shared_ptr<Elf>& elf() { return GetElfFields().elf_; } in elf()
153 inline void set_elf(std::shared_ptr<Elf>& value) { GetElfFields().elf_ = value; } in set_elf()
154 inline void set_elf(Elf* value) { GetElfFields().elf_.reset(value); } in set_elf()
178 Elf* GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch);
DRegs.h32 class Elf; variable
74 virtual bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) = 0;
117 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf, ArchEnum arch);
DRegsArm.h40 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsRiscv64.h40 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsMips64.h40 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsMips.h40 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86_64.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
/system/unwinding/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.h44 using unwindstack::Elf;
76 Elf* elf = nullptr);
/system/unwinding/libunwindstack/tools/
Dunwind_info.cpp41 void DumpArm(Elf* elf, ElfInterfaceArm* interface) { in DumpArm()
85 void DumpDwarfSection(Elf* elf, DwarfSection* section, uint64_t) { in DumpDwarfSection()
106 Elf elf(Memory::CreateFileMemory(file, offset).release()); in GetElfInfo()
/system/unwinding/libunwindstack/utils/
DRegsFake.h56 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/unwinding/libunwindstack/benchmarks/
DElfBenchmark.cpp48 unwindstack::Elf elf(file_memory.release()); in BenchmarkElfCreate()
112 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()
/system/security/keystore2/src/
Dasync_task.rs281 struct Elf { in test_shelf() struct
284 let e1 = Elf { name: "Glorfindel".to_string() }; in test_shelf()
293 let e2 = shelf.get_downcast_mut::<Elf>().unwrap(); in test_shelf()
299 let e3 = shelf.remove_downcast_ref::<Elf>().unwrap(); in test_shelf()
302 assert_eq!(shelf.remove_downcast_ref::<Elf>(), None); in test_shelf()

12