/system/core/libunwindstack/benchmarks/ |
D | unwind_benchmarks.cpp | 31 size_t Call6(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call6() 32 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::CreateFromLocal()); in Call6() 33 unwindstack::RegsGetLocal(regs.get()); in Call6() 34 unwindstack::Unwinder unwinder(32, maps, regs.get(), process_memory); 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() [all …]
|
D | ElfBenchmark.cpp | 45 auto file_memory = unwindstack::Memory::CreateFileMemory(elf_file, 0); in BenchmarkElfCreate() 48 unwindstack::Elf elf(file_memory.release()); in BenchmarkElfCreate() 81 static void InitializeBuildId(benchmark::State& state, unwindstack::Maps& maps, in InitializeBuildId() 82 unwindstack::MapInfo** build_id_map_info) { in InitializeBuildId() 103 unwindstack::LocalMaps maps; in BM_elf_get_build_id_from_object() 104 unwindstack::MapInfo* build_id_map_info; in BM_elf_get_build_id_from_object() 107 unwindstack::Elf* elf = build_id_map_info->GetElf(std::shared_ptr<unwindstack::Memory>(), in BM_elf_get_build_id_from_object() 108 unwindstack::Regs::CurrentArch()); in BM_elf_get_build_id_from_object() 127 unwindstack::LocalMaps maps; in BM_elf_get_build_id_from_file() 128 unwindstack::MapInfo* build_id_map_info; in BM_elf_get_build_id_from_file()
|
/system/core/libunwindstack/tests/fuzz/ |
D | UnwinderComponentCreator.h | 43 using unwindstack::ArchEnum; 44 using unwindstack::DexFiles; 45 using unwindstack::Elf; 46 using unwindstack::ElfFake; 47 using unwindstack::ElfInterfaceFake; 48 using unwindstack::FunctionData; 49 using unwindstack::Maps; 50 using unwindstack::Memory; 51 using unwindstack::MemoryFake; 52 using unwindstack::Regs; [all …]
|
D | UnwinderComponentCreator.cpp | 21 case unwindstack::ARCH_ARM: { in GetRegisters() 22 std::unique_ptr<unwindstack::RegsArm> regs = std::make_unique<unwindstack::RegsArm>(); in GetRegisters() 25 case unwindstack::ARCH_ARM64: { in GetRegisters() 26 std::unique_ptr<unwindstack::RegsArm64> regs = std::make_unique<unwindstack::RegsArm64>(); in GetRegisters() 29 case unwindstack::ARCH_X86: { in GetRegisters() 30 std::unique_ptr<unwindstack::RegsX86> regs = std::make_unique<unwindstack::RegsX86>(); in GetRegisters() 33 case unwindstack::ARCH_X86_64: { in GetRegisters() 34 std::unique_ptr<unwindstack::RegsX86_64> regs = std::make_unique<unwindstack::RegsX86_64>(); in GetRegisters() 37 case unwindstack::ARCH_MIPS: { in GetRegisters() 38 std::unique_ptr<unwindstack::RegsMips> regs = std::make_unique<unwindstack::RegsMips>(); in GetRegisters() [all …]
|
/system/core/libbacktrace/ |
D | UnwindStackMap.h | 51 virtual std::shared_ptr<unwindstack::Memory> GetProcessMemory() override final; 53 unwindstack::Maps* stack_maps() { return stack_maps_.get(); } in stack_maps() 55 const std::shared_ptr<unwindstack::Memory>& process_memory() { return process_memory_; } in process_memory() 57 unwindstack::JitDebug* GetJitDebug() { return jit_debug_.get(); } in GetJitDebug() 60 unwindstack::DexFiles* GetDexFiles() { return dex_files_.get(); } in GetDexFiles() 63 void SetArch(unwindstack::ArchEnum arch) { arch_ = arch; } in SetArch() 68 std::unique_ptr<unwindstack::Maps> stack_maps_; 69 std::shared_ptr<unwindstack::Memory> process_memory_; 70 std::unique_ptr<unwindstack::JitDebug> jit_debug_; 72 std::unique_ptr<unwindstack::DexFiles> dex_files_; [all …]
|
D | UnwindStackMap.cpp | 38 stack_maps_.reset(new unwindstack::LocalMaps); in Build() 40 stack_maps_.reset(new unwindstack::RemoteMaps(pid_)); in Build() 44 process_memory_ = unwindstack::Memory::CreateProcessMemory(pid_); in Build() 48 jit_debug_.reset(new unwindstack::JitDebug(process_memory_, search_libs_)); in Build() 50 dex_files_.reset(new unwindstack::DexFiles(process_memory_, search_libs_)); in Build() 81 unwindstack::MapInfo* map_info = stack_maps_->Find(addr); in FillIn() 93 unwindstack::MapInfo* map_info = stack_maps_->Get(index); in GetLoadBias() 102 unwindstack::Maps* maps = stack_maps(); in GetFunctionName() 105 unwindstack::MapInfo* map_info = maps->Find(pc); in GetFunctionName() 110 if (arch_ == unwindstack::ARCH_UNKNOWN) { in GetFunctionName() [all …]
|
D | UnwindStack.cpp | 45 bool Backtrace::Unwind(unwindstack::Regs* regs, BacktraceMap* back_map, in Unwind() 50 unwindstack::Unwinder unwinder(MAX_BACKTRACE_FRAMES + num_ignore_frames, stack_map->stack_maps(), in Unwind() 65 case unwindstack::ERROR_NONE: in Unwind() 69 case unwindstack::ERROR_MEMORY_INVALID: in Unwind() 74 case unwindstack::ERROR_UNWIND_INFO: in Unwind() 78 case unwindstack::ERROR_UNSUPPORTED: in Unwind() 82 case unwindstack::ERROR_INVALID_MAP: in Unwind() 86 case unwindstack::ERROR_MAX_FRAMES_EXCEEDED: in Unwind() 90 case unwindstack::ERROR_REPEATED_FRAME: in Unwind() 94 case unwindstack::ERROR_INVALID_ELF: in Unwind() [all …]
|
/system/core/libunwindstack/tools/ |
D | unwind.cpp | 60 unwindstack::Regs* regs = unwindstack::Regs::RemoteGet(pid); in DoUnwind() 68 case unwindstack::ARCH_ARM: in DoUnwind() 71 case unwindstack::ARCH_X86: in DoUnwind() 74 case unwindstack::ARCH_ARM64: in DoUnwind() 77 case unwindstack::ARCH_X86_64: in DoUnwind() 80 case unwindstack::ARCH_MIPS: in DoUnwind() 83 case unwindstack::ARCH_MIPS64: in DoUnwind() 92 unwindstack::UnwinderFromPid unwinder(1024, pid); in DoUnwind()
|
D | unwind_for_offline.cpp | 76 bool SaveRegs(unwindstack::Regs* regs) { in SaveRegs() 102 auto process_memory = unwindstack::Memory::CreateProcessMemory(pid); in SaveStack() 133 bool CreateElfFromMemory(std::shared_ptr<unwindstack::Memory>& memory, map_info_t* info) { in CreateElfFromMemory() 204 unwindstack::MapInfo* map_info) { in FillInAndGetMapInfo() 215 void SaveMapInformation(std::shared_ptr<unwindstack::Memory>& process_memory, map_info_t* info, in SaveMapInformation() 237 unwindstack::Regs* regs = unwindstack::Regs::RemoteGet(pid); in SaveData() 250 unwindstack::UnwinderFromPid unwinder(1024, pid); in SaveData() 261 unwindstack::Maps* maps = unwinder.GetMaps(); in SaveData() 263 unwindstack::MapInfo* map_info = maps->Find(sp); in SaveData() 289 unwindstack::MapInfo* prev_map = map_info->prev_map; in SaveData()
|
D | unwind_symbols.cpp | 60 unwindstack::log_to_stdout(true); in main() 62 unwindstack::Elf elf(unwindstack::Memory::CreateFileMemory(argv[1], 0).release()); in main()
|
/system/extras/simpleperf/ |
D | OfflineUnwinder.cpp | 48 unwindstack::MAPS_FLAGS_JIT_SYMFILE_MAP, ""); 55 unwindstack::Regs* OfflineUnwinderImpl::GetBacktraceRegs(const RegSet& regs) { in GetBacktraceRegs() 58 unwindstack::arm_user_regs arm_user_regs; in GetBacktraceRegs() 61 static_cast<int>(unwindstack::ARM_REG_R0) == static_cast<int>(PERF_REG_ARM_R0), ""); in GetBacktraceRegs() 63 static_cast<int>(unwindstack::ARM_REG_LAST) == static_cast<int>(PERF_REG_ARM_MAX), ""); in GetBacktraceRegs() 64 for (size_t i = unwindstack::ARM_REG_R0; i < unwindstack::ARM_REG_LAST; ++i) { in GetBacktraceRegs() 67 return unwindstack::RegsArm::Read(&arm_user_regs); in GetBacktraceRegs() 70 unwindstack::arm64_user_regs arm64_user_regs; in GetBacktraceRegs() 73 static_cast<int>(unwindstack::ARM64_REG_R0) == static_cast<int>(PERF_REG_ARM64_X0), ""); in GetBacktraceRegs() 75 static_cast<int>(unwindstack::ARM64_REG_R30) == static_cast<int>(PERF_REG_ARM64_LR), ""); in GetBacktraceRegs() [all …]
|
D | OfflineUnwinder_impl.h | 26 class UnwindMaps : public unwindstack::Maps { 38 unwindstack::Elf::SetCachingEnabled(true); in OfflineUnwinderImpl() 46 unwindstack::Regs* GetBacktraceRegs(const RegSet& regs);
|
D | OfflineUnwinder_test.cpp | 31 unwindstack::MapInfo* prev_real_map = nullptr; in CheckUnwindMaps() 33 unwindstack::MapInfo* info = maps.Get(i); in CheckUnwindMaps() 111 unwindstack::Regs* regs = unwinder->GetBacktraceRegs(fake_regs); in TEST() 113 auto& arm64 = *static_cast<unwindstack::RegsArm64*>(regs); in TEST() 114 arm64.SetPseudoRegister(unwindstack::Arm64Reg::ARM64_PREG_RA_SIGN_STATE, 1); in TEST()
|
/system/core/libunwindstack/tests/ |
D | TestLocal.cpp | 22 unwindstack::LocalUnwinder* unwinder = in TestlibLevel4() 23 reinterpret_cast<unwindstack::LocalUnwinder*>(unwinder_data); in TestlibLevel4() 24 std::vector<unwindstack::LocalFrameData>* frame_info = in TestlibLevel4() 25 reinterpret_cast<std::vector<unwindstack::LocalFrameData>*>(frame_data); in TestlibLevel4()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 85 unwindstack::Maps* maps) { in get_stack_overflow_cause() 103 unwindstack::MapInfo* map_info = maps->Find(sp); in get_stack_overflow_cause() 115 static void dump_probable_cause(log_t* log, const siginfo_t* si, unwindstack::Maps* maps, in dump_probable_cause() 116 unwindstack::Regs* regs) { in dump_probable_cause() 136 unwindstack::MapInfo* map_info = maps->Find(fault_addr); in dump_probable_cause() 151 const ProcessInfo& process_info, unwindstack::Memory* process_memory) { in dump_signal_info() 201 static void dump_abort_message(log_t* log, unwindstack::Memory* process_memory, uint64_t address) { in dump_abort_message() 230 static void dump_all_maps(log_t* log, unwindstack::Unwinder* unwinder, uint64_t addr) { in dump_all_maps() 233 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_all_maps() 250 std::shared_ptr<unwindstack::Memory>& process_memory = unwinder->GetProcessMemory(); in dump_all_maps() [all …]
|
D | gwp_asan.cpp | 30 static bool retrieve_gwp_asan_state(unwindstack::Memory* process_memory, uintptr_t state_addr, in retrieve_gwp_asan_state() 41 unwindstack::Memory* process_memory, const gwp_asan::AllocatorState& state, in retrieve_gwp_asan_metadata() 65 GwpAsanCrashData::GwpAsanCrashData(unwindstack::Memory* process_memory, in GwpAsanCrashData() 170 void GwpAsanCrashData::DumpDeallocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const { in DumpDeallocationTrace() 186 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames.get()[i]); in DumpDeallocationTrace() 197 void GwpAsanCrashData::DumpAllocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const { in DumpAllocationTrace() 213 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames.get()[i]); in DumpAllocationTrace()
|
D | scudo.cpp | 25 std::unique_ptr<char[]> AllocAndReadFully(unwindstack::Memory* process_memory, uint64_t addr, in AllocAndReadFully() 36 ScudoCrashData::ScudoCrashData(unwindstack::Memory* process_memory, in ScudoCrashData() 79 void ScudoCrashData::DumpCause(log_t* log, unwindstack::Unwinder* unwinder) const { in DumpCause() 94 unwindstack::Unwinder* unwinder) const { in DumpReport() 142 unwindstack::FrameData frame_data = in DumpReport() 153 unwindstack::FrameData frame_data = in DumpReport()
|
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
D | backtrace.h | 32 namespace unwindstack { 38 void dump_backtrace(android::base::unique_fd output_fd, unwindstack::Unwinder* unwinder, 42 void dump_backtrace_thread(int output_fd, unwindstack::Unwinder* unwinder,
|
D | scudo.h | 30 ScudoCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info); 34 void DumpCause(log_t* log, unwindstack::Unwinder* unwinder) const; 41 unwindstack::Unwinder* unwinder) const;
|
D | gwp_asan.h | 41 GwpAsanCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info, 62 void DumpDeallocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const; 70 void DumpAllocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const;
|
D | utility.h | 77 namespace unwindstack { 82 void log_backtrace(log_t* log, unwindstack::Unwinder* unwinder, const char* prefix); 84 void dump_memory(log_t* log, unwindstack::Memory* backtrace, uint64_t addr, const std::string&);
|
D | tombstone.h | 33 namespace unwindstack { 47 void engrave_tombstone(android::base::unique_fd output_fd, unwindstack::Unwinder* unwinder,
|
/system/core/libunwindstack/ |
D | LocalUnwinder.cpp | 44 namespace unwindstack { namespace 50 maps_.reset(new unwindstack::LocalUpdatableMaps()); in Init() 56 process_memory_ = unwindstack::Memory::CreateProcessMemory(getpid()); in Init() 89 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::CreateFromLocal()); in Unwind() 90 unwindstack::RegsGetLocal(regs.get()); in Unwind()
|
/system/core/debuggerd/libdebuggerd/test/ |
D | UnwinderMock.h | 23 class UnwinderMock : public unwindstack::Unwinder { 25 UnwinderMock() : Unwinder(128, new unwindstack::Maps, nullptr) {} in UnwinderMock() 34 unwindstack::MapInfo* map_info = GetMaps()->Find(offset); in MockSetBuildID()
|
D | elf_fake.cpp | 23 namespace unwindstack { namespace 33 bool elf_get_build_id(unwindstack::Memory*, uintptr_t, std::string* build_id) { in elf_get_build_id()
|