/system/unwinding/libunwindstack/ |
D | Elf.cpp | 39 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, MapInfo* map_info) { in GetRelPc() 108 bool Elf::GetFunctionName(uint64_t addr, SharedString* name, uint64_t* func_offset) { in GetFunctionName() 115 bool Elf::GetGlobalVariableOffset(const std::string& name, uint64_t* memory_offset) { in GetGlobalVariableOffset() [all …]
|
D | MapInfo.cpp | 50 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() 168 if (Elf::IsValidElf(memory.get())) { in CreateMemory() 213 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf() 223 if (Elf::CachingEnabled() && !name().empty()) { in GetElf() 224 Elf::CacheLock(); in GetElf() 226 if (Elf::CacheGet(this)) { in GetElf() 227 Elf::CacheUnlock(); in GetElf() 234 if (Elf::CacheAfterCreateMemory(this)) { in GetElf() [all …]
|
D | JitDebug.cpp | 27 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()
|
D | Unwinder.cpp | 97 FrameData* Unwinder::FillInFrame(MapInfo* map_info, Elf* elf, uint64_t rel_pc, in FillInFrame() 173 Elf* elf; in Unwind() 208 Elf* jit_elf = jit_debug_->Find(maps_, adjusted_jit_pc); in Unwind() 456 Elf* elf = map_info->GetElf(process_memory, arch); in BuildFrameFromPcOnly() 468 Elf* jit_elf = jit_debug->Find(maps, jit_pc); in BuildFrameFromPcOnly()
|
/system/unwinding/libunwindstack/tests/ |
D | ElfCacheTest.cpp | 36 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 …]
|
D | MapInfoGetElfTest.cpp | 76 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 88 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 108 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F() 122 Elf* elf = info.GetElf(process_memory_, ARCH_X86); in TEST_F() 135 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 151 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F() 166 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 196 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 225 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 258 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() [all …]
|
D | JitDebugTest.cpp | 257 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 …]
|
D | GlobalDebugImplTest.cpp | 37 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()
|
D | ElfTest.cpp | 114 Elf elf(memory_); in TEST_F() 121 Elf elf(memory_); in TEST_F() 167 Elf elf(memory_); in TEST_F() 180 Elf elf(memory_); in TEST_F() 193 Elf elf(memory_); in TEST_F() 205 Elf elf(memory_); in TEST_F() 217 Elf elf(memory_); in TEST_F() 229 Elf elf(memory_); in TEST_F() 241 Elf elf(memory_); in TEST_F() 253 Elf elf(memory_); in TEST_F() [all …]
|
D | RegsFake.h | 57 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument 89 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | JitDebug.h | 30 class Elf; variable 33 using JitDebug = GlobalDebugInterface<Elf>;
|
D | Elf.h | 43 class Elf { 45 Elf(Memory* memory) : memory_(memory) {} in Elf() function 46 virtual ~Elf() = default; 127 static std::unordered_map<std::string, std::pair<std::shared_ptr<Elf>, bool>>* cache_;
|
D | MapInfo.h | 60 std::shared_ptr<Elf> elf_; 102 inline std::shared_ptr<Elf>& elf() { return GetElfFields().elf_; } in elf() 103 inline void set_elf(std::shared_ptr<Elf>& value) { GetElfFields().elf_ = value; } in set_elf() 104 inline void set_elf(Elf* value) { GetElfFields().elf_.reset(value); } in set_elf() 131 Elf* GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch);
|
D | Regs.h | 32 class Elf; variable 74 virtual bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) = 0; 116 uint64_t GetPcAdjustment(uint64_t rel_pc, Elf* elf, ArchEnum arch);
|
D | RegsMips64.h | 41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsMips.h | 41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsArm.h | 41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsX86.h | 42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsX86_64.h | 42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsArm64.h | 42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
/system/unwinding/libunwindstack/tests/fuzz/ |
D | UnwinderComponentCreator.h | 45 using unwindstack::Elf; 77 Elf* elf = nullptr);
|
/system/unwinding/libunwindstack/tools/ |
D | unwind_info.cpp | 41 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/unwinding/libunwindstack/benchmarks/ |
D | ElfBenchmark.cpp | 48 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/ |
D | OfflineUnwinder_impl.h | 38 unwindstack::Elf::SetCachingEnabled(true); in OfflineUnwinderImpl()
|
/system/security/keystore2/src/ |
D | async_task.rs | 281 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()
|