/aosp12/system/unwinding/libunwindstack/tests/fuzz/ |
H A D | UnwinderComponentCreator.h | 43 using unwindstack::ArchEnum; 44 using unwindstack::DexFiles; 45 using unwindstack::Elf; 46 using unwindstack::ElfFake; 48 using unwindstack::FunctionData; 49 using unwindstack::Maps; 50 using unwindstack::Memory; 51 using unwindstack::MemoryFake; 52 using unwindstack::Regs; 53 using unwindstack::StepData; [all …]
|
H A D | UnwinderComponentCreator.cpp | 26 case unwindstack::ARCH_ARM: { in GetRegisters() 27 std::unique_ptr<unwindstack::RegsArm> regs = std::make_unique<unwindstack::RegsArm>(); in GetRegisters() 30 case unwindstack::ARCH_ARM64: { in GetRegisters() 31 std::unique_ptr<unwindstack::RegsArm64> regs = std::make_unique<unwindstack::RegsArm64>(); in GetRegisters() 34 case unwindstack::ARCH_X86: { in GetRegisters() 35 std::unique_ptr<unwindstack::RegsX86> regs = std::make_unique<unwindstack::RegsX86>(); in GetRegisters() 39 std::unique_ptr<unwindstack::RegsX86_64> regs = std::make_unique<unwindstack::RegsX86_64>(); in GetRegisters() 42 case unwindstack::ARCH_MIPS: { in GetRegisters() 43 std::unique_ptr<unwindstack::RegsMips> regs = std::make_unique<unwindstack::RegsMips>(); in GetRegisters() 47 std::unique_ptr<unwindstack::RegsMips64> regs = std::make_unique<unwindstack::RegsMips64>(); in GetRegisters() [all …]
|
/aosp12/system/unwinding/libunwindstack/benchmarks/ |
H A D | local_unwind_benchmarks.cpp | 36 unwindstack::Maps* maps; 70 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::CreateFromLocal()); in Unwind() 71 unwindstack::RegsGetLocal(regs.get()); in Unwind() 79 unwindstack::LocalUnwinder* unwinder = reinterpret_cast<unwindstack::LocalUnwinder*>(unwind_ptr); in LocalUnwind() 87 unwindstack::LocalMaps maps; in BM_local_unwind_uncached_process_memory() 99 unwindstack::LocalMaps maps; in BM_local_unwind_cached_process_memory() 111 unwindstack::LocalUpdatableMaps maps; in BM_local_unwind_local_updatable_maps_uncached() 123 unwindstack::LocalUpdatableMaps maps; in BM_local_unwind_local_updatable_maps_cached() 146 unwindstack::LocalUnwinder unwinder; in BM_local_unwind_local_unwinder() 157 unwindstack::LocalMaps maps; in BM_local_unwind_uncached_process_memory_no_func_names() [all …]
|
H A 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() 115 unwindstack::SharedString* id = build_id_map_info->build_id(); 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() [all …]
|
H A D | remote_unwind_benchmarks.cpp | 39 unwindstack::TestQuiescePid(pid); in WaitForRemote() 41 unwindstack::MemoryRemote memory(pid); in WaitForRemote() 110 unwindstack::TestScopedPidReaper reap(pid); in RemoteUnwind() 112 std::shared_ptr<unwindstack::Memory> process_memory; in RemoteUnwind() 114 process_memory = unwindstack::Memory::CreateProcessMemoryCached(pid); in RemoteUnwind() 116 process_memory = unwindstack::Memory::CreateProcessMemory(pid); in RemoteUnwind() 118 unwindstack::RemoteMaps maps(pid); in RemoteUnwind() 124 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::RemoteGet(pid)); in RemoteUnwind() 125 unwindstack::Unwinder unwinder(32, &maps, regs.get(), process_memory); in RemoteUnwind()
|
/aosp12/system/unwinding/libbacktrace/ |
H A D | UnwindStackMap.cpp | 38 stack_maps_.reset(new unwindstack::LocalMaps); in Build() 46 if (arch_ == unwindstack::ARCH_UNKNOWN) { in Build() 48 arch_ = unwindstack::Regs::CurrentArch(); in Build() 51 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::RemoteGet(pid_)); in Build() 59 if (arch_ != unwindstack::ARCH_UNKNOWN) { in Build() 116 unwindstack::Maps* maps = stack_maps(); in GetFunctionName() 119 unwindstack::MapInfo* map_info = maps->Find(pc); in GetFunctionName() 124 if (arch_ == unwindstack::ARCH_UNKNOWN) { in GetFunctionName() 126 arch_ = unwindstack::Regs::CurrentArch(); in GetFunctionName() 129 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::RemoteGet(pid_)); in GetFunctionName() [all …]
|
H A D | UnwindStack.cpp | 65 case unwindstack::ERROR_NONE: 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() 94 case unwindstack::ERROR_INVALID_ELF: in Unwind() 98 case unwindstack::ERROR_SYSTEM_CALL: in Unwind() 159 std::unique_ptr<unwindstack::Regs> regs; in UnwindFromContext() 164 unwindstack::RegsGetLocal(regs.get()); in UnwindFromContext() 166 regs.reset(unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in UnwindFromContext() 184 std::unique_ptr<unwindstack::Regs> regs; in Unwind() [all …]
|
H A 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 …]
|
/aosp12/art/runtime/ |
H A D | backtrace_helper.cc | 55 : arch_(unwindstack::Regs::CurrentArch()), in UnwindHelper() 57 jit_(unwindstack::CreateJitDebug(arch_, memory_)), in UnwindHelper() 65 unwindstack::Elf::SetCachingEnabled(true); in UnwindHelper() 83 unwindstack::LocalUpdatableMaps maps_; 84 unwindstack::ArchEnum arch_; 85 std::shared_ptr<unwindstack::Memory> memory_; 86 std::unique_ptr<unwindstack::JitDebug> jit_; 87 std::unique_ptr<unwindstack::DexFiles> dex_; 88 unwindstack::Unwinder unwinder_; 116 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::CreateFromLocal()); in CollectImpl() [all …]
|
/aosp12/system/extras/simpleperf/ |
H A D | OfflineUnwinder.cpp | 76 unwindstack::arm_user_regs arm_user_regs; in GetBacktraceRegs() 82 for (size_t i = unwindstack::ARM_REG_R0; i < unwindstack::ARM_REG_LAST; ++i) { in GetBacktraceRegs() 85 return unwindstack::RegsArm::Read(&arm_user_regs); in GetBacktraceRegs() 88 unwindstack::arm64_user_regs arm64_user_regs; in GetBacktraceRegs() 99 static_cast<unwindstack::RegsArm64*>(unwindstack::RegsArm64::Read(&arm64_user_regs)); in GetBacktraceRegs() 104 unwindstack::x86_user_regs x86_user_regs; in GetBacktraceRegs() 115 return unwindstack::RegsX86::Read(&x86_user_regs); in GetBacktraceRegs() 118 unwindstack::x86_64_user_regs x86_64_user_regs; in GetBacktraceRegs() 137 return unwindstack::RegsX86_64::Read(&x86_64_user_regs); in GetBacktraceRegs() 144 static unwindstack::MapInfo* CreateMapInfo(const MapEntry* entry) { in CreateMapInfo() [all …]
|
/aosp12/system/unwinding/libunwindstack/tools/ |
H A 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()
|
H A 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() 257 unwindstack::Maps* maps = unwinder.GetMaps(); in SaveData() 259 unwindstack::MapInfo* map_info = maps->Find(sp); in SaveData() 285 unwindstack::MapInfo* prev_map = map_info->prev_map(); in SaveData()
|
H A 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() 93 unwindstack::SharedString cur_name; in main() 112 unwindstack::SharedString cur_name; in main()
|
/aosp12/system/core/debuggerd/libdebuggerd/ |
H A D | tombstone.cpp | 106 unwindstack::MapInfo* map_info = maps->Find(sp); in get_stack_overflow_cause() 119 unwindstack::Regs* regs) { in dump_probable_cause() 139 unwindstack::MapInfo* map_info = maps->Find(fault_addr); in dump_probable_cause() 241 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_all_maps() 327 void dump_registers(log_t* log, unwindstack::Regs* regs) { in dump_registers() 366 void dump_memory_and_code(log_t* log, unwindstack::Maps* maps, unwindstack::Memory* memory, in dump_memory_and_code() 367 unwindstack::Regs* regs) { in dump_memory_and_code() 439 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_thread() 577 std::unique_ptr<unwindstack::Regs> regs( in engrave_tombstone_ucontext() 578 unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in engrave_tombstone_ucontext() [all …]
|
H A D | tombstone_proto.cpp | 102 unwindstack::MapInfo* map_info = maps->Find(sp); in get_stack_overflow_cause() 203 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_probable_cause() 223 unwindstack::MapInfo* map_info = maps->Find(fault_addr); in dump_probable_cause() 303 unwindstack::Maps* maps) { in fill_in_backtrace_frame() 332 unwindstack::MapInfo* map_info = maps->Find(frame.map_start); in fill_in_backtrace_frame() 346 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_thread() 347 unwindstack::Memory* memory = unwinder->GetProcessMemory().get(); in dump_thread() 360 unwindstack::MapInfo* map_info = maps->Find(untag_address(value)); in dump_thread() 405 if (unwinder->LastErrorCode() != unwindstack::ERROR_NONE) { in dump_thread() 438 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_mappings() [all …]
|
H A D | scudo.cpp | 28 std::unique_ptr<char[]> AllocAndReadFully(unwindstack::Memory* process_memory, uint64_t addr, in AllocAndReadFully() 37 ScudoCrashData::ScudoCrashData(unwindstack::Memory* process_memory, in ScudoCrashData() 83 unwindstack::Unwinder* unwinder) const { in FillInCause() 109 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(report->allocation_trace[i]); in FillInCause() 117 unwindstack::FrameData frame_data = in FillInCause() 126 void ScudoCrashData::AddCauseProtos(Tombstone* tombstone, unwindstack::Unwinder* unwinder) const { in AddCauseProtos() 134 void ScudoCrashData::DumpCause(log_t* log, unwindstack::Unwinder* unwinder) const { in DumpCause() 149 unwindstack::Unwinder* unwinder) const { in DumpReport() 198 unwindstack::FrameData frame_data = in DumpReport() 210 unwindstack::FrameData frame_data = in DumpReport()
|
H A D | gwp_asan.cpp | 33 static bool retrieve_gwp_asan_state(unwindstack::Memory* process_memory, uintptr_t state_addr, in retrieve_gwp_asan_state() 44 unwindstack::Memory* process_memory, const gwp_asan::AllocatorState& state, in retrieve_gwp_asan_metadata() 68 GwpAsanCrashData::GwpAsanCrashData(unwindstack::Memory* process_memory, in GwpAsanCrashData() 106 void GwpAsanCrashData::AddCauseProtos(Tombstone* tombstone, unwindstack::Unwinder* unwinder) const { in AddCauseProtos() 148 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames[i]); in AddCauseProtos() 157 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames[i]); in AddCauseProtos() 225 void GwpAsanCrashData::DumpDeallocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const { in DumpDeallocationTrace() 241 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames[i]); in DumpDeallocationTrace() 252 void GwpAsanCrashData::DumpAllocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const { in DumpAllocationTrace() 268 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames[i]); in DumpAllocationTrace()
|
/aosp12/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
H A D | scudo.h | 33 ScudoCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info); 37 void DumpCause(log_t* log, unwindstack::Unwinder* unwinder) const; 38 void AddCauseProtos(Tombstone* tombstone, unwindstack::Unwinder* unwinder) const; 45 unwindstack::Unwinder* unwinder) const; 48 unwindstack::Unwinder* unwinder) const;
|
H A D | tombstone.h | 38 namespace unwindstack { 55 unwindstack::Unwinder* unwinder, 63 void engrave_tombstone_proto(Tombstone* tombstone, unwindstack::Unwinder* unwinder, 71 void fill_in_backtrace_frame(BacktraceFrame* f, const unwindstack::FrameData& frame, 72 unwindstack::Maps* maps);
|
H A D | gwp_asan.h | 44 GwpAsanCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info, 65 void DumpDeallocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const; 73 void DumpAllocationTrace(log_t* log, unwindstack::Unwinder* unwinder) const; 75 void AddCauseProtos(Tombstone* tombstone, unwindstack::Unwinder* unwinder) const;
|
H A D | utility.h | 77 namespace unwindstack { 82 void log_backtrace(log_t* log, unwindstack::Unwinder* unwinder, const char* prefix); 85 unwindstack::Memory* memory); 86 void dump_memory(log_t* log, unwindstack::Memory* backtrace, uint64_t addr, const std::string&);
|
/aosp12/bionic/libc/malloc_debug/ |
H A D | UnwindBacktrace.cpp | 55 static unwindstack::LocalUnwinder* g_unwinder; 64 g_unwinder = new unwindstack::LocalUnwinder(skip_libraries); in Setup() 68 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* frame_info, s… in Unwind() 87 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& frame_info) { in UnwindLog() 89 const unwindstack::LocalFrameData* info = &frame_info[i]; in UnwindLog() 90 unwindstack::MapInfo* map_info = info->map_info; in UnwindLog()
|
/aosp12/system/unwinding/libunwindstack/ |
H A D | LocalUnwinder.cpp | 44 namespace unwindstack { namespace 50 maps_.reset(new unwindstack::LocalUpdatableMaps()); in Init() 56 process_memory_ = unwindstack::Memory::CreateProcessMemoryThreadCached(getpid()); in Init() 71 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::CreateFromLocal()); in Unwind() 72 unwindstack::RegsGetLocal(regs.get()); in Unwind()
|
/aosp12/system/unwinding/libunwindstack/tests/ |
H A 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()
|
/aosp12/bionic/libc/malloc_debug/tests/ |
H A D | backtrace_fake.cpp | 63 static std::deque<std::vector<unwindstack::LocalFrameData>> g_fake_local_frame_data; 69 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames) { in BacktraceUnwindFake() 73 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t)… in Unwind() 88 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& /*frame_info*/) { in UnwindLog()
|