Home
last modified time | relevance | path

Searched refs:Memory (Results 1 – 25 of 123) sorted by relevance

12345

/system/unwinding/libunwindstack/include/unwindstack/
DElf.h45 Elf(Memory* memory) : memory_(memory) {} in Elf()
62 bool StepIfSignalHandler(uint64_t rel_pc, Regs* regs, Memory* process_memory);
64 bool Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished,
67 ElfInterface* CreateInterfaceFromMemory(Memory* memory);
89 Memory* memory() { return memory_.get(); } in memory()
95 static bool IsValidElf(Memory* memory);
97 static bool GetInfo(Memory* memory, uint64_t* size);
99 static int64_t GetLoadBias(Memory* memory);
101 static std::string GetBuildID(Memory* memory);
116 std::unique_ptr<Memory> memory_;
[all …]
DMemory.h31 class Memory {
33 Memory() = default;
34 virtual ~Memory() = default;
36 static std::shared_ptr<Memory> CreateProcessMemory(pid_t pid);
37 static std::shared_ptr<Memory> CreateProcessMemoryCached(pid_t pid);
38 static std::shared_ptr<Memory> CreateProcessMemoryThreadCached(pid_t pid);
39 static std::shared_ptr<Memory> CreateOfflineMemory(const uint8_t* data, uint64_t start,
41 static std::unique_ptr<Memory> CreateFileMemory(const std::string& path, uint64_t offset,
DElfInterface.h35 class Memory; variable
73 ElfInterface(Memory* memory) : memory_(memory) {} in ElfInterface()
88 virtual bool Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished,
95 std::unique_ptr<Memory> CreateGnuDebugdataMemory();
97 Memory* memory() { return memory_; } in memory()
131 static int64_t GetLoadBias(Memory* memory);
134 static std::string ReadBuildIDFromMemory(Memory* memory);
139 Memory* memory_;
197 ElfInterfaceImpl(Memory* memory) : ElfInterface(memory) {} in ElfInterfaceImpl()
212 static void GetMaxSize(Memory* memory, uint64_t* size);
DRegsMips64.h30 class Memory; variable
39 bool SetPcFromReturnAddress(Memory* process_memory) override;
41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DGlobal.h39 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_;
DRegsMips.h30 class Memory; variable
39 bool SetPcFromReturnAddress(Memory* process_memory) override;
41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsArm.h30 class Memory; variable
39 bool SetPcFromReturnAddress(Memory* process_memory) override;
41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86.h30 class Memory; variable
40 bool SetPcFromReturnAddress(Memory* process_memory) override;
42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86_64.h30 class Memory; variable
40 bool SetPcFromReturnAddress(Memory* process_memory) override;
42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DDwarfSection.h36 class Memory; variable
43 DwarfSection(Memory* memory);
93 virtual bool Eval(const DwarfCie*, Memory*, const DwarfLocations&, Regs*, bool*) = 0;
110 bool Step(uint64_t pc, Regs* regs, Memory* process_memory, bool* finished, bool* is_signal_frame);
128 DwarfSectionImpl(Memory* memory) : DwarfSection(memory) {} in DwarfSectionImpl()
143 bool Eval(const DwarfCie* cie, Memory* regular_memory, const DwarfLocations& loc_regs, Regs* regs,
165 bool EvalExpression(const DwarfLocation& loc, Memory* regular_memory, AddressType* value,
DRegsArm64.h31 class Memory; variable
40 bool SetPcFromReturnAddress(Memory* process_memory) override;
42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DJitDebug.h31 class Memory; variable
35 std::unique_ptr<JitDebug> CreateJitDebug(ArchEnum arch, std::shared_ptr<Memory>& memory,
DDexFiles.h31 class Memory; variable
35 std::unique_ptr<DexFiles> CreateDexFiles(ArchEnum arch, std::shared_ptr<Memory>& memory,
/system/unwinding/libunwindstack/
DMemoryCache.h32 class MemoryCacheBase : public Memory {
34 MemoryCacheBase(Memory* memory) : impl_(memory) {} in MemoryCacheBase()
39 const std::shared_ptr<Memory>& UnderlyingMemory() { return impl_; } in UnderlyingMemory()
62 std::shared_ptr<Memory> impl_;
67 MemoryCache(Memory* memory) : MemoryCacheBase(memory) {} in MemoryCache()
82 MemoryThreadCache(Memory* memory);
DSymbols.h32 class Memory; variable
47 bool GetName(uint64_t addr, Memory* elf_memory, SharedString* name, uint64_t* func_offset);
50 bool GetGlobal(Memory* elf_memory, const std::string& name, uint64_t* memory_address);
59 Info* BinarySearch(uint64_t addr, Memory* elf_memory, uint64_t* func_offset);
62 void BuildRemapTable(Memory* elf_memory);
DMemoryRange.h33 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 {
DDexFiles.cpp30 bool GlobalDebugInterface<DexFile>::Load(Maps* maps, std::shared_ptr<Memory>& memory, uint64_t addr, in Load()
36 std::unique_ptr<DexFiles> CreateDexFiles(ArchEnum arch, std::shared_ptr<Memory>& memory, in CreateDexFiles()
44 bool GlobalDebugInterface<DexFile>::Load(Maps*, std::shared_ptr<Memory>&, uint64_t, uint64_t,
49 std::unique_ptr<DexFiles> CreateDexFiles(ArchEnum, std::shared_ptr<Memory>&,
DArmExidx.h28 class Memory; variable
56 ArmExidx(RegsArm* regs, Memory* elf_memory, Memory* process_memory) in ArmExidx()
113 Memory* elf_memory_;
114 Memory* process_memory_;
DMemoryXz.h28 class MemoryXz : public Memory {
30 MemoryXz(Memory* memory, uint64_t addr, uint64_t size, const std::string& name);
56 Memory* compressed_memory_;
DSymbols.cpp50 Symbols::Info* Symbols::BinarySearch(uint64_t addr, Memory* elf_memory, uint64_t* func_offset) { in BinarySearch()
91 void Symbols::BuildRemapTable(Memory* elf_memory) { in BuildRemapTable()
126 bool Symbols::GetName(uint64_t addr, Memory* elf_memory, SharedString* name, in GetName()
167 bool Symbols::GetGlobal(Memory* elf_memory, const std::string& name, uint64_t* memory_address) { in GetGlobal()
203 template bool Symbols::GetName<Elf32_Sym>(uint64_t, Memory*, SharedString*, uint64_t*);
204 template bool Symbols::GetName<Elf64_Sym>(uint64_t, Memory*, SharedString*, uint64_t*);
206 template bool Symbols::GetGlobal<Elf32_Sym>(Memory*, const std::string&, uint64_t*);
207 template bool Symbols::GetGlobal<Elf64_Sym>(Memory*, const std::string&, uint64_t*);
DDwarfOp.h36 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/unwinding/libunwindstack/benchmarks/
Dlocal_unwind_benchmarks.cpp35 std::shared_ptr<unwindstack::Memory>& process_memory;
86 auto process_memory = unwindstack::Memory::CreateProcessMemory(getpid()); in BM_local_unwind_uncached_process_memory()
98 auto process_memory = unwindstack::Memory::CreateProcessMemoryCached(getpid()); in BM_local_unwind_cached_process_memory()
110 auto process_memory = unwindstack::Memory::CreateProcessMemory(getpid()); in BM_local_unwind_local_updatable_maps_uncached()
122 auto process_memory = unwindstack::Memory::CreateProcessMemoryCached(getpid()); in BM_local_unwind_local_updatable_maps_cached()
134 auto process_memory = unwindstack::Memory::CreateProcessMemoryThreadCached(getpid()); in BM_local_unwind_local_updatable_maps_thread_cached()
156 auto process_memory = unwindstack::Memory::CreateProcessMemory(getpid()); in BM_local_unwind_uncached_process_memory_no_func_names()
168 auto process_memory = unwindstack::Memory::CreateProcessMemoryCached(getpid()); in BM_local_unwind_cached_process_memory_no_func_names()
180 auto process_memory = unwindstack::Memory::CreateProcessMemory(getpid()); in BM_local_unwind_local_updatable_maps_uncached_no_func_names()
192 auto process_memory = unwindstack::Memory::CreateProcessMemoryCached(getpid()); in BM_local_unwind_local_updatable_maps_cached_no_func_names()
/system/core/debuggerd/libdebuggerd/test/
Delf_fake.cpp24 class Memory;
33 bool elf_get_build_id(unwindstack::Memory*, uintptr_t, std::string* build_id) { in elf_get_build_id() argument
/system/unwinding/libbacktrace/
DUnwindStackMap.h51 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/unwinding/libunwindstack/tests/
DElfFake.h52 ElfFake(Memory* memory) : Elf(memory) { valid_ = true; } in ElfFake()
69 ElfInterfaceFake(Memory* memory) : ElfInterface(memory) {} in ElfInterfaceFake()
80 bool Step(uint64_t, Regs*, Memory*, bool*, bool*) override;
125 ElfInterface32Fake(Memory* memory) : ElfInterface32(memory) {} in ElfInterface32Fake()
136 ElfInterface64Fake(Memory* memory) : ElfInterface64(memory) {} in ElfInterface64Fake()
147 ElfInterfaceArmFake(Memory* memory) : ElfInterfaceArm(memory) {} in ElfInterfaceArmFake()

12345