Lines Matching refs:unwindstack

52 static_assert(map_flags::PROT_JIT_SYMFILE_MAP == unwindstack::MAPS_FLAGS_JIT_SYMFILE_MAP);
55 static_assert(UnwindStackErrorCode::error_code_name == unwindstack::ErrorCode::error_code_name)
73 unwindstack::Regs* OfflineUnwinderImpl::GetBacktraceRegs(const RegSet& regs) { in GetBacktraceRegs()
76 unwindstack::arm_user_regs arm_user_regs; in GetBacktraceRegs()
78 static_assert(static_cast<int>(unwindstack::ARM_REG_R0) == static_cast<int>(PERF_REG_ARM_R0), in GetBacktraceRegs()
81 static_cast<int>(unwindstack::ARM_REG_LAST) == static_cast<int>(PERF_REG_ARM_MAX), ""); 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()
91 static_cast<int>(unwindstack::ARM64_REG_R0) == static_cast<int>(PERF_REG_ARM64_X0), ""); in GetBacktraceRegs()
93 static_cast<int>(unwindstack::ARM64_REG_R30) == static_cast<int>(PERF_REG_ARM64_LR), ""); in GetBacktraceRegs()
94 memcpy(&arm64_user_regs.regs[unwindstack::ARM64_REG_R0], &regs.data[PERF_REG_ARM64_X0], 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()
167 return new unwindstack::MapInfo(nullptr, nullptr, entry->start_addr, entry->get_end_addr(), pgoff, in CreateMapInfo()
204 maps_.resize(std::remove(maps_.begin(), maps_.end(), std::unique_ptr<unwindstack::MapInfo>()) - in UpdateMaps()
262 std::unique_ptr<unwindstack::Regs> unwind_regs(GetBacktraceRegs(regs)); in UnwindCallChain()
266 unwindstack::Unwinder unwinder( in UnwindCallChain()
268 unwindstack::Memory::CreateOfflineMemory(reinterpret_cast<const uint8_t*>(stack), stack_addr, in UnwindCallChain()
286 if (frame.map_flags & unwindstack::MAPS_FLAGS_JIT_SYMFILE_MAP) { in UnwindCallChain()