diff options
Diffstat (limited to 'include/linux/ptrace.h')
| -rw-r--r-- | include/linux/ptrace.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index 56f2d63a5cbb..dbfa821d5a6e 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
| @@ -27,6 +27,21 @@ | |||
| 27 | #define PTRACE_GETSIGINFO 0x4202 | 27 | #define PTRACE_GETSIGINFO 0x4202 |
| 28 | #define PTRACE_SETSIGINFO 0x4203 | 28 | #define PTRACE_SETSIGINFO 0x4203 |
| 29 | 29 | ||
| 30 | /* | ||
| 31 | * Generic ptrace interface that exports the architecture specific regsets | ||
| 32 | * using the corresponding NT_* types (which are also used in the core dump). | ||
| 33 | * | ||
| 34 | * This interface usage is as follows: | ||
| 35 | * struct iovec iov = { buf, len}; | ||
| 36 | * | ||
| 37 | * ret = ptrace(PTRACE_GETREGSET/PTRACE_SETREGSET, pid, NT_XXX_TYPE, &iov); | ||
| 38 | * | ||
| 39 | * On the successful completion, iov.len will be updated by the kernel, | ||
| 40 | * specifying how much the kernel has written/read to/from the user's iov.buf. | ||
| 41 | */ | ||
| 42 | #define PTRACE_GETREGSET 0x4204 | ||
| 43 | #define PTRACE_SETREGSET 0x4205 | ||
| 44 | |||
| 30 | /* options set using PTRACE_SETOPTIONS */ | 45 | /* options set using PTRACE_SETOPTIONS */ |
| 31 | #define PTRACE_O_TRACESYSGOOD 0x00000001 | 46 | #define PTRACE_O_TRACESYSGOOD 0x00000001 |
| 32 | #define PTRACE_O_TRACEFORK 0x00000002 | 47 | #define PTRACE_O_TRACEFORK 0x00000002 |
