Lines Matching refs:regs
55 unwindstack::Regs* OfflineUnwinderImpl::GetBacktraceRegs(const RegSet& regs) { in GetBacktraceRegs() argument
56 switch (regs.arch) { in GetBacktraceRegs()
65 arm_user_regs.regs[i] = static_cast<uint32_t>(regs.data[i]); in GetBacktraceRegs()
76 memcpy(&arm64_user_regs.regs[unwindstack::ARM64_REG_R0], ®s.data[PERF_REG_ARM64_X0], in GetBacktraceRegs()
78 arm64_user_regs.sp = regs.data[PERF_REG_ARM64_SP]; in GetBacktraceRegs()
79 arm64_user_regs.pc = regs.data[PERF_REG_ARM64_PC]; in GetBacktraceRegs()
80 auto regs = in GetBacktraceRegs() local
82 regs->SetPACMask(arm64_pac_mask_); in GetBacktraceRegs()
83 return regs; in GetBacktraceRegs()
88 x86_user_regs.eax = static_cast<uint32_t>(regs.data[PERF_REG_X86_AX]); in GetBacktraceRegs()
89 x86_user_regs.ebx = static_cast<uint32_t>(regs.data[PERF_REG_X86_BX]); in GetBacktraceRegs()
90 x86_user_regs.ecx = static_cast<uint32_t>(regs.data[PERF_REG_X86_CX]); in GetBacktraceRegs()
91 x86_user_regs.edx = static_cast<uint32_t>(regs.data[PERF_REG_X86_DX]); in GetBacktraceRegs()
92 x86_user_regs.ebp = static_cast<uint32_t>(regs.data[PERF_REG_X86_BP]); in GetBacktraceRegs()
93 x86_user_regs.edi = static_cast<uint32_t>(regs.data[PERF_REG_X86_DI]); in GetBacktraceRegs()
94 x86_user_regs.esi = static_cast<uint32_t>(regs.data[PERF_REG_X86_SI]); in GetBacktraceRegs()
95 x86_user_regs.esp = static_cast<uint32_t>(regs.data[PERF_REG_X86_SP]); in GetBacktraceRegs()
96 x86_user_regs.eip = static_cast<uint32_t>(regs.data[PERF_REG_X86_IP]); in GetBacktraceRegs()
102 x86_64_user_regs.rax = regs.data[PERF_REG_X86_AX]; in GetBacktraceRegs()
103 x86_64_user_regs.rbx = regs.data[PERF_REG_X86_BX]; in GetBacktraceRegs()
104 x86_64_user_regs.rcx = regs.data[PERF_REG_X86_CX]; in GetBacktraceRegs()
105 x86_64_user_regs.rdx = regs.data[PERF_REG_X86_DX]; in GetBacktraceRegs()
106 x86_64_user_regs.r8 = regs.data[PERF_REG_X86_R8]; in GetBacktraceRegs()
107 x86_64_user_regs.r9 = regs.data[PERF_REG_X86_R9]; in GetBacktraceRegs()
108 x86_64_user_regs.r10 = regs.data[PERF_REG_X86_R10]; in GetBacktraceRegs()
109 x86_64_user_regs.r11 = regs.data[PERF_REG_X86_R11]; in GetBacktraceRegs()
110 x86_64_user_regs.r12 = regs.data[PERF_REG_X86_R12]; in GetBacktraceRegs()
111 x86_64_user_regs.r13 = regs.data[PERF_REG_X86_R13]; in GetBacktraceRegs()
112 x86_64_user_regs.r14 = regs.data[PERF_REG_X86_R14]; in GetBacktraceRegs()
113 x86_64_user_regs.r15 = regs.data[PERF_REG_X86_R15]; in GetBacktraceRegs()
114 x86_64_user_regs.rdi = regs.data[PERF_REG_X86_DI]; in GetBacktraceRegs()
115 x86_64_user_regs.rsi = regs.data[PERF_REG_X86_SI]; in GetBacktraceRegs()
116 x86_64_user_regs.rbp = regs.data[PERF_REG_X86_BP]; in GetBacktraceRegs()
117 x86_64_user_regs.rsp = regs.data[PERF_REG_X86_SP]; in GetBacktraceRegs()
118 x86_64_user_regs.rip = regs.data[PERF_REG_X86_IP]; in GetBacktraceRegs()
223 bool OfflineUnwinderImpl::UnwindCallChain(const ThreadEntry& thread, const RegSet& regs, in UnwindCallChain() argument
235 if (!regs.GetSpRegValue(&sp_reg_value)) { in UnwindCallChain()
243 std::unique_ptr<unwindstack::Regs> unwind_regs(GetBacktraceRegs(regs)); in UnwindCallChain()
280 if (!regs.GetIpRegValue(&ip_reg_value)) { in UnwindCallChain()