[PATCH 114-115] ptrace.h cleanups

2009-10-23 Thread Oleg Nesterov
I guess my intent is clear, but just in case... the second patch is the only change in ptrace.h we need and we can send it upstream right now. I am thinking how can we fix utrace_control(SINGLESTEP). I don't have good ideas so far. But, perhaps we can add utrace-please_enable_single_step:1 ?

[PATCH 115] (upstream) ptrace_init_task: cleanup the usage of ptrace_link()

2009-10-23 Thread Oleg Nesterov
ptrace_init_task() looks confusing, as if we always auto-attach when bool ptrace argument is true, while in fact we attach only if current is traced. Make the code more explicit and kill now unused ptrace_link(). Signed-off-by: Oleg Nesterov o...@redhat.com --- include/linux/ptrace.h | 11