Lines Matching full:ucontext
19 #include <ucontext.h>
35 ucontext_t ucontext;
36 memset(&ucontext, 0, sizeof(ucontext));
38 SetUContextReg(ucontext.uc_mcontext.gregs[REG_GS], PERF_REG_X86_GS);
39 SetUContextReg(ucontext.uc_mcontext.gregs[REG_FS], PERF_REG_X86_FS);
40 SetUContextReg(ucontext.uc_mcontext.gregs[REG_ES], PERF_REG_X86_ES);
41 SetUContextReg(ucontext.uc_mcontext.gregs[REG_DS], PERF_REG_X86_DS);
42 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EAX], PERF_REG_X86_AX);
43 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EBX], PERF_REG_X86_BX);
44 SetUContextReg(ucontext.uc_mcontext.gregs[REG_ECX], PERF_REG_X86_CX);
45 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EDX], PERF_REG_X86_DX);
46 SetUContextReg(ucontext.uc_mcontext.gregs[REG_ESI], PERF_REG_X86_SI);
47 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EDI], PERF_REG_X86_DI);
48 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EBP], PERF_REG_X86_BP);
49 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EIP], PERF_REG_X86_IP);
50 SetUContextReg(ucontext.uc_mcontext.gregs[REG_ESP], PERF_REG_X86_SP);
51 SetUContextReg(ucontext.uc_mcontext.gregs[REG_CS], PERF_REG_X86_CS);
52 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EFL], PERF_REG_X86_FLAGS);
53 SetUContextReg(ucontext.uc_mcontext.gregs[REG_SS], PERF_REG_X86_SS);
55 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R8], PERF_REG_X86_R8);
56 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R9], PERF_REG_X86_R9);
57 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R10], PERF_REG_X86_R10);
58 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R11], PERF_REG_X86_R11);
59 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R12], PERF_REG_X86_R12);
60 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R13], PERF_REG_X86_R13);
61 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R14], PERF_REG_X86_R14);
62 SetUContextReg(ucontext.uc_mcontext.gregs[REG_R15], PERF_REG_X86_R15);
63 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RDI], PERF_REG_X86_DI);
64 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RSI], PERF_REG_X86_SI);
65 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RBP], PERF_REG_X86_BP);
66 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RBX], PERF_REG_X86_BX);
67 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RDX], PERF_REG_X86_DX);
68 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RAX], PERF_REG_X86_AX);
69 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RCX], PERF_REG_X86_CX);
70 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RSP], PERF_REG_X86_SP);
71 SetUContextReg(ucontext.uc_mcontext.gregs[REG_RIP], PERF_REG_X86_IP);
74 SetUContextReg(ucontext.uc_mcontext.regs[i], i);
77 SetUContextReg(ucontext.uc_mcontext.arm_r0, PERF_REG_ARM_R0);
78 SetUContextReg(ucontext.uc_mcontext.arm_r1, PERF_REG_ARM_R1);
79 SetUContextReg(ucontext.uc_mcontext.arm_r2, PERF_REG_ARM_R2);
80 SetUContextReg(ucontext.uc_mcontext.arm_r3, PERF_REG_ARM_R3);
81 SetUContextReg(ucontext.uc_mcontext.arm_r4, PERF_REG_ARM_R4);
82 SetUContextReg(ucontext.uc_mcontext.arm_r5, PERF_REG_ARM_R5);
83 SetUContextReg(ucontext.uc_mcontext.arm_r6, PERF_REG_ARM_R6);
84 SetUContextReg(ucontext.uc_mcontext.arm_r7, PERF_REG_ARM_R7);
85 SetUContextReg(ucontext.uc_mcontext.arm_r8, PERF_REG_ARM_R8);
86 SetUContextReg(ucontext.uc_mcontext.arm_r9, PERF_REG_ARM_R9);
87 SetUContextReg(ucontext.uc_mcontext.arm_r10, PERF_REG_ARM_R10);
88 SetUContextReg(ucontext.uc_mcontext.arm_fp, PERF_REG_ARM_FP);
89 SetUContextReg(ucontext.uc_mcontext.arm_ip, PERF_REG_ARM_IP);
90 SetUContextReg(ucontext.uc_mcontext.arm_sp, PERF_REG_ARM_SP);
91 SetUContextReg(ucontext.uc_mcontext.arm_lr, PERF_REG_ARM_LR);
92 SetUContextReg(ucontext.uc_mcontext.arm_pc, PERF_REG_ARM_PC);
94 return ucontext;
129 ucontext_t ucontext = BuildUContextFromRegs(regs);
130 if (backtrace->Unwind(0, &ucontext)) {