]> git.baikalelectronics.ru Git - kernel.git/commit
tracehook: clone
authorRoland McGrath <roland@redhat.com>
Sat, 26 Jul 2008 02:45:47 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:08 +0000 (12:00 -0700)
commit4dac5baa6a80b239507620a9d09a66a208efa0da
treea7b3f0ffe271d4d35c3b98a99183d8792ea4db53
parentc2cea4a7084b1da13a7369de094e713ecc32382d
tracehook: clone

This moves all the ptrace initialization and tracing logic for task
creation into tracehook.h and ptrace.h inlines.  It reorganizes the code
slightly, but should not change any behavior.

There are four tracehook entry points, at each important stage of task
creation.  This keeps the interface from the core fork.c code fairly
clean, while supporting the complex setup required for ptrace or something
like it.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/ptrace.h
include/linux/tracehook.h
kernel/fork.c