/system/core/libunwindstack/include/unwindstack/ |
D | Elf.h | 53 Elf(Memory* memory) : memory_(memory) {} in Elf() 70 bool StepIfSignalHandler(uint64_t rel_pc, Regs* regs, Memory* process_memory); 72 bool Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished); 74 ElfInterface* CreateInterfaceFromMemory(Memory* memory); 94 Memory* memory() { return memory_.get(); } in memory() 100 static bool IsValidElf(Memory* memory); 102 static bool GetInfo(Memory* memory, uint64_t* size); 104 static int64_t GetLoadBias(Memory* memory); 106 static std::string GetBuildID(Memory* memory); 121 std::unique_ptr<Memory> memory_; [all …]
|
D | Memory.h | 29 class Memory { 31 Memory() = default; 32 virtual ~Memory() = default; 34 static std::shared_ptr<Memory> CreateProcessMemory(pid_t pid); 35 static std::shared_ptr<Memory> CreateProcessMemoryCached(pid_t pid); 36 static std::shared_ptr<Memory> CreateOfflineMemory(const uint8_t* data, uint64_t start, 38 static std::unique_ptr<Memory> CreateFileMemory(const std::string& path, uint64_t offset);
|
D | ElfInterface.h | 34 class Memory; variable 52 ElfInterface(Memory* memory) : memory_(memory) {} in ElfInterface() 67 virtual bool Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished); 71 Memory* CreateGnuDebugdataMemory(); 73 Memory* memory() { return memory_; } in memory() 107 static int64_t GetLoadBias(Memory* memory); 110 static std::string ReadBuildIDFromMemory(Memory* memory); 137 static void GetMaxSizeWithTemplate(Memory* memory, uint64_t* size); 142 Memory* memory_; 188 ElfInterface32(Memory* memory) : ElfInterface(memory) {} in ElfInterface32() [all …]
|
D | MapInfo.h | 96 Elf* GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch); 98 uint64_t GetLoadBias(const std::shared_ptr<Memory>& process_memory); 100 Memory* CreateMemory(const std::shared_ptr<Memory>& process_memory); 116 Memory* GetFileMemory();
|
D | Global.h | 39 explicit Global(std::shared_ptr<Memory>& memory); 40 Global(std::shared_ptr<Memory>& memory, std::vector<std::string>& search_libs); 57 std::shared_ptr<Memory> memory_;
|
D | RegsMips.h | 30 class Memory; variable 39 bool SetPcFromReturnAddress(Memory* process_memory) override; 41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsArm.h | 30 class Memory; variable 39 bool SetPcFromReturnAddress(Memory* process_memory) override; 41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsMips64.h | 30 class Memory; variable 39 bool SetPcFromReturnAddress(Memory* process_memory) override; 41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsX86_64.h | 30 class Memory; variable 40 bool SetPcFromReturnAddress(Memory* process_memory) override; 42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | RegsX86.h | 30 class Memory; variable 40 bool SetPcFromReturnAddress(Memory* process_memory) override; 42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
D | DwarfSection.h | 35 class Memory; variable 42 DwarfSection(Memory* memory); 92 virtual bool Eval(const DwarfCie*, Memory*, const dwarf_loc_regs_t&, Regs*, bool*) = 0; 109 bool Step(uint64_t pc, Regs* regs, Memory* process_memory, bool* finished); 127 DwarfSectionImpl(Memory* memory) : DwarfSection(memory) {} in DwarfSectionImpl() 142 bool Eval(const DwarfCie* cie, Memory* regular_memory, const dwarf_loc_regs_t& loc_regs, 161 bool EvalExpression(const DwarfLocation& loc, Memory* regular_memory, AddressType* value,
|
D | RegsArm64.h | 31 class Memory; variable 40 bool SetPcFromReturnAddress(Memory* process_memory) override; 42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
|
/system/core/libunwindstack/benchmarks/ |
D | unwind_benchmarks.cpp | 31 size_t Call6(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call6() 39 size_t Call5(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call5() 43 size_t Call4(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call4() 47 size_t Call3(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call3() 51 size_t Call2(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call2() 55 size_t Call1(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call1() 60 auto process_memory = unwindstack::Memory::CreateProcessMemory(getpid()); in BM_uncached_unwind() 73 auto process_memory = unwindstack::Memory::CreateProcessMemoryCached(getpid()); in BM_cached_unwind()
|
/system/core/libunwindstack/ |
D | Symbols.h | 29 class Memory; variable 44 bool GetName(uint64_t addr, Memory* elf_memory, std::string* name, uint64_t* func_offset); 47 bool GetGlobal(Memory* elf_memory, const std::string& name, uint64_t* memory_address); 56 const Info* ReadFuncInfo(uint32_t symbol_index, Memory* elf_memory); 59 const Info* BinarySearch(uint64_t addr, Memory* elf_memory); 62 void BuildRemapTable(Memory* elf_memory);
|
D | MemoryRange.h | 33 class MemoryRange : public Memory { 35 MemoryRange(const std::shared_ptr<Memory>& memory, uint64_t begin, uint64_t length, 45 std::shared_ptr<Memory> memory_; 51 class MemoryRanges : public Memory {
|
D | ArmExidx.h | 28 class Memory; variable 56 ArmExidx(RegsArm* regs, Memory* elf_memory, Memory* process_memory) in ArmExidx() 113 Memory* elf_memory_; 114 Memory* process_memory_;
|
D | Symbols.cpp | 47 uint32_t symbol_index, Memory* elf_memory) { in ReadFuncInfo() 69 const Symbols::Info* Symbols::BinarySearch(uint64_t addr, Memory* elf_memory) { in BinarySearch() 92 void Symbols::BuildRemapTable(Memory* elf_memory) { in BuildRemapTable() 125 bool Symbols::GetName(uint64_t addr, Memory* elf_memory, std::string* name, uint64_t* func_offset) { in GetName() 150 bool Symbols::GetGlobal(Memory* elf_memory, const std::string& name, uint64_t* memory_address) { in GetGlobal() 173 template bool Symbols::GetName<Elf32_Sym>(uint64_t, Memory*, std::string*, uint64_t*); 174 template bool Symbols::GetName<Elf64_Sym>(uint64_t, Memory*, std::string*, uint64_t*); 176 template bool Symbols::GetGlobal<Elf32_Sym>(Memory*, const std::string&, uint64_t*); 177 template bool Symbols::GetGlobal<Elf64_Sym>(Memory*, const std::string&, uint64_t*);
|
D | MemoryCache.h | 30 class MemoryCache : public Memory { 32 MemoryCache(Memory* memory) : impl_(memory) {} in MemoryCache() 46 std::unique_ptr<Memory> impl_;
|
D | Memory.cpp | 156 bool Memory::ReadFully(uint64_t addr, void* dst, size_t size) { in ReadFully() 161 bool Memory::ReadString(uint64_t addr, std::string* dst, size_t max_read) { in ReadString() 189 std::unique_ptr<Memory> Memory::CreateFileMemory(const std::string& path, uint64_t offset) { in CreateFileMemory() 199 std::shared_ptr<Memory> Memory::CreateProcessMemory(pid_t pid) { in CreateProcessMemory() 201 return std::shared_ptr<Memory>(new MemoryLocal()); in CreateProcessMemory() 203 return std::shared_ptr<Memory>(new MemoryRemote(pid)); in CreateProcessMemory() 206 std::shared_ptr<Memory> Memory::CreateProcessMemoryCached(pid_t pid) { in CreateProcessMemoryCached() 208 return std::shared_ptr<Memory>(new MemoryCache(new MemoryLocal())); in CreateProcessMemoryCached() 210 return std::shared_ptr<Memory>(new MemoryCache(new MemoryRemote(pid))); in CreateProcessMemoryCached() 213 std::shared_ptr<Memory> Memory::CreateOfflineMemory(const uint8_t* data, uint64_t start, in CreateOfflineMemory() [all …]
|
D | MapInfo.cpp | 63 Memory* MapInfo::GetFileMemory() { in GetFileMemory() 136 Memory* MapInfo::CreateMemory(const std::shared_ptr<Memory>& process_memory) { in CreateMemory() 150 Memory* memory = GetFileMemory(); in CreateMemory() 195 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf() 214 Memory* memory = CreateMemory(process_memory); in GetElf() 266 uint64_t MapInfo::GetLoadBias(const std::shared_ptr<Memory>& process_memory) { in GetLoadBias() 289 std::unique_ptr<Memory> memory(CreateMemory(process_memory)); in GetLoadBias() 324 std::unique_ptr<Memory> memory(GetFileMemory()); in GetBuildID()
|
D | DwarfOp.h | 36 class Memory; variable 46 DwarfOp(DwarfMemory* memory, Memory* regular_memory) in DwarfOp() 71 Memory* regular_memory() { return regular_memory_; } in regular_memory() 85 Memory* regular_memory_;
|
/system/core/debuggerd/libdebuggerd/test/ |
D | elf_fake.cpp | 24 class Memory; 33 bool elf_get_build_id(unwindstack::Memory*, uintptr_t, std::string* build_id) { in elf_get_build_id() argument
|
/system/core/libbacktrace/ |
D | UnwindStackMap.h | 51 virtual std::shared_ptr<unwindstack::Memory> GetProcessMemory() override final; 55 const std::shared_ptr<unwindstack::Memory>& process_memory() { return process_memory_; } in process_memory() 69 std::shared_ptr<unwindstack::Memory> process_memory_;
|
/system/core/libunwindstack/tests/ |
D | RegsFake.h | 42 bool SetPcFromReturnAddress(Memory*) override { in SetPcFromReturnAddress() argument 57 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument 87 bool SetPcFromReturnAddress(Memory*) override { return false; } in SetPcFromReturnAddress() argument 88 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; } in StepIfSignalHandler() argument
|
D | ElfFake.h | 51 ElfFake(Memory* memory) : Elf(memory) { valid_ = true; } in ElfFake() 68 ElfInterfaceFake(Memory* memory) : ElfInterface(memory) {} in ElfInterfaceFake() 79 bool Step(uint64_t, Regs*, Memory*, bool*) override; 124 ElfInterface32Fake(Memory* memory) : ElfInterface32(memory) {} in ElfInterface32Fake() 135 ElfInterface64Fake(Memory* memory) : ElfInterface64(memory) {} in ElfInterface64Fake() 146 ElfInterfaceArmFake(Memory* memory) : ElfInterfaceArm(memory) {} in ElfInterfaceArmFake()
|