1 #ifndef _X86_64_PTRACE_ABI_H
2 #define _X86_64_PTRACE_ABI_H
4 #if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS)
11 /* arguments: interrupts/non tracing syscalls only save upto here*/
21 #define ORIG_RAX 120 /* = ERROR */
22 /* end of arguments */
23 /* cpu exception frame or undefined in case of fast syscall. */
30 #endif /* __ASSEMBLY__ */
32 /* top of stack page */
33 #define FRAME_SIZE 168
35 #define PTRACE_OLDSETOPTIONS 21
37 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
38 #define PTRACE_GETREGS 12
39 #define PTRACE_SETREGS 13
40 #define PTRACE_GETFPREGS 14
41 #define PTRACE_SETFPREGS 15
42 #define PTRACE_GETFPXREGS 18
43 #define PTRACE_SETFPXREGS 19
45 /* only useful for access 32bit programs */
46 #define PTRACE_GET_THREAD_AREA 25
47 #define PTRACE_SET_THREAD_AREA 26
49 #define PTRACE_ARCH_PRCTL 30 /* arch_prctl for child */