Lines Matching refs:PT_INDEX
17 #define PT_INDEX(off) ((off) / sizeof(unsigned long))
19 #define PT_SYSCALL_NR(regs) ((regs)[PT_INDEX(ORIG_RAX)])
22 #define PT_SYSCALL_ARG1(regs) (((unsigned long *) (regs))[PT_INDEX(RDI)])
25 #define PT_SYSCALL_ARG2(regs) (((unsigned long *) (regs))[PT_INDEX(RSI)])
28 #define PT_SYSCALL_ARG3(regs) (((unsigned long *) (regs))[PT_INDEX(RDX)])
31 #define PT_SYSCALL_ARG4(regs) (((unsigned long *) (regs))[PT_INDEX(RCX)])
34 #define PT_SYSCALL_ARG5(regs) (((unsigned long *) (regs))[PT_INDEX(R8)])
37 #define PT_SYSCALL_ARG6(regs) (((unsigned long *) (regs))[PT_INDEX(R9)])
43 #define PT_IP(regs) ((regs)[PT_INDEX(RIP)])
46 #define PT_SP(regs) ((regs)[PT_INDEX(RSP)])
49 #define PT_ORIG_RAX(regs) ((regs)[PT_INDEX(ORIG_RAX)])
64 #define REGS_SYSCALL_NR PT_INDEX(RAX)
65 #define REGS_SYSCALL_ARG1 PT_INDEX(RDI)
66 #define REGS_SYSCALL_ARG2 PT_INDEX(RSI)
67 #define REGS_SYSCALL_ARG3 PT_INDEX(RDX)
68 #define REGS_SYSCALL_ARG4 PT_INDEX(R10)
69 #define REGS_SYSCALL_ARG5 PT_INDEX(R8)
70 #define REGS_SYSCALL_ARG6 PT_INDEX(R9)
72 #define REGS_IP_INDEX PT_INDEX(RIP)
73 #define REGS_SP_INDEX PT_INDEX(RSP)