diff options
| author | Daniel Jacobowitz <drow@nevyn.them.org> | 2003-02-06 08:07:11 -0500 |
|---|---|---|
| committer | Daniel Jacobowitz <drow@nevyn.them.org> | 2003-02-06 08:07:11 -0500 |
| commit | b8fc4428d704b91911051cbea79304cbc746f3a5 (patch) | |
| tree | cd6bd85f02ac4dd506b6497691d08a69e05da4d4 /include/linux | |
| parent | 3fa327f8a756c99e76fc5f95459fc85a45bcafc5 (diff) | |
| parent | a866697c6eadb9d46eff2c8ebac4dfe4834ce565 (diff) | |
Hand-merge with Ingo's changes
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ptrace.h | 6 | ||||
| -rw-r--r-- | include/linux/sched.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index c6de3a4ea70a..706b420fb5c9 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h @@ -26,6 +26,8 @@ /* 0x4200-0x4300 are reserved for architecture-independent additions. */ #define PTRACE_SETOPTIONS 0x4200 #define PTRACE_GETEVENTMSG 0x4201 +#define PTRACE_GETSIGINFO 0x4202 +#define PTRACE_SETSIGINFO 0x4203 /* options set using PTRACE_SETOPTIONS */ #define PTRACE_O_TRACESYSGOOD 0x00000001 @@ -33,12 +35,16 @@ #define PTRACE_O_TRACEVFORK 0x00000004 #define PTRACE_O_TRACECLONE 0x00000008 #define PTRACE_O_TRACEEXEC 0x00000010 +#define PTRACE_O_TRACEVFORKDONE 0x00000020 +#define PTRACE_O_TRACEEXIT 0x00000040 /* Wait extended result codes for the above trace options. */ #define PTRACE_EVENT_FORK 1 #define PTRACE_EVENT_VFORK 2 #define PTRACE_EVENT_CLONE 3 #define PTRACE_EVENT_EXEC 4 +#define PTRACE_EVENT_VFORK_DONE 5 +#define PTRACE_EVENT_EXIT 6 #include <asm/ptrace.h> #include <linux/sched.h> diff --git a/include/linux/sched.h b/include/linux/sched.h index d41f7a24fc14..b9256878eb14 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -405,6 +405,7 @@ struct task_struct { struct backing_dev_info *backing_dev_info; unsigned long ptrace_message; + siginfo_t *last_siginfo; /* For ptrace use. */ }; extern void __put_task_struct(struct task_struct *tsk); @@ -445,6 +446,8 @@ do { if (atomic_dec_and_test(&(tsk)->usage)) __put_task_struct(tsk); } while(0) #define PT_TRACE_VFORK 0x00000020 #define PT_TRACE_CLONE 0x00000040 #define PT_TRACE_EXEC 0x00000080 +#define PT_TRACE_VFORK_DONE 0x00000100 +#define PT_TRACE_EXIT 0x00000200 #if CONFIG_SMP extern void set_cpus_allowed(task_t *p, unsigned long new_mask); |
