1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _ASM_X86_PTRACE_ABI_H 20 #define _ASM_X86_PTRACE_ABI_H 21 #ifdef __i386__ 22 #define EBX 0 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define ECX 1 25 #define EDX 2 26 #define ESI 3 27 #define EDI 4 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define EBP 5 30 #define EAX 6 31 #define DS 7 32 #define ES 8 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define FS 9 35 #define GS 10 36 #define ORIG_EAX 11 37 #define EIP 12 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define CS 13 40 #define EFL 14 41 #define UESP 15 42 #define SS 16 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define FRAME_SIZE 17 45 #else 46 #if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS) 47 #define R15 0 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define R14 8 50 #define R13 16 51 #define R12 24 52 #define RBP 32 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define RBX 40 55 #define R11 48 56 #define R10 56 57 #define R9 64 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define R8 72 60 #define RAX 80 61 #define RCX 88 62 #define RDX 96 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define RSI 104 65 #define RDI 112 66 #define ORIG_RAX 120 67 #define RIP 128 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define CS 136 70 #define EFLAGS 144 71 #define RSP 152 72 #define SS 160 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define ARGOFFSET R11 75 #endif 76 #define FRAME_SIZE 168 77 #endif 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define PTRACE_GETREGS 12 80 #define PTRACE_SETREGS 13 81 #define PTRACE_GETFPREGS 14 82 #define PTRACE_SETFPREGS 15 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define PTRACE_GETFPXREGS 18 85 #define PTRACE_SETFPXREGS 19 86 #define PTRACE_OLDSETOPTIONS 21 87 #define PTRACE_GET_THREAD_AREA 25 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define PTRACE_SET_THREAD_AREA 26 90 #ifdef __x86_64__ 91 #define PTRACE_ARCH_PRCTL 30 92 #endif 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #define PTRACE_SYSEMU 31 95 #define PTRACE_SYSEMU_SINGLESTEP 32 96 #define PTRACE_SINGLEBLOCK 33 97 #ifndef __ASSEMBLY__ 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #include <linux/types.h> 100 #endif 101 #endif 102