The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame^] | 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 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef _LINUX_PTRACE_H |
| 13 | #define _LINUX_PTRACE_H |
| 14 | |
| 15 | #define PTRACE_TRACEME 0 |
| 16 | #define PTRACE_PEEKTEXT 1 |
| 17 | #define PTRACE_PEEKDATA 2 |
| 18 | #define PTRACE_PEEKUSR 3 |
| 19 | #define PTRACE_POKETEXT 4 |
| 20 | #define PTRACE_POKEDATA 5 |
| 21 | #define PTRACE_POKEUSR 6 |
| 22 | #define PTRACE_CONT 7 |
| 23 | #define PTRACE_KILL 8 |
| 24 | #define PTRACE_SINGLESTEP 9 |
| 25 | |
| 26 | #define PTRACE_ATTACH 0x10 |
| 27 | #define PTRACE_DETACH 0x11 |
| 28 | |
| 29 | #define PTRACE_SYSCALL 24 |
| 30 | |
| 31 | #define PTRACE_SETOPTIONS 0x4200 |
| 32 | #define PTRACE_GETEVENTMSG 0x4201 |
| 33 | #define PTRACE_GETSIGINFO 0x4202 |
| 34 | #define PTRACE_SETSIGINFO 0x4203 |
| 35 | |
| 36 | #define PTRACE_O_TRACESYSGOOD 0x00000001 |
| 37 | #define PTRACE_O_TRACEFORK 0x00000002 |
| 38 | #define PTRACE_O_TRACEVFORK 0x00000004 |
| 39 | #define PTRACE_O_TRACECLONE 0x00000008 |
| 40 | #define PTRACE_O_TRACEEXEC 0x00000010 |
| 41 | #define PTRACE_O_TRACEVFORKDONE 0x00000020 |
| 42 | #define PTRACE_O_TRACEEXIT 0x00000040 |
| 43 | |
| 44 | #define PTRACE_O_MASK 0x0000007f |
| 45 | |
| 46 | #define PTRACE_EVENT_FORK 1 |
| 47 | #define PTRACE_EVENT_VFORK 2 |
| 48 | #define PTRACE_EVENT_CLONE 3 |
| 49 | #define PTRACE_EVENT_EXEC 4 |
| 50 | #define PTRACE_EVENT_VFORK_DONE 5 |
| 51 | #define PTRACE_EVENT_EXIT 6 |
| 52 | |
| 53 | #include <asm/ptrace.h> |
| 54 | |
| 55 | #endif |