From: Markus Metzger Date: Fri, 19 Dec 2008 14:10:24 +0000 (+0100) Subject: x86, bts: add fork and exit handling X-Git-Tag: v2.6.29-rc1~586^2^3~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf53de907dfdaac178c92d774aae7370d7b97d20;p=pandora-kernel.git x86, bts: add fork and exit handling Impact: introduce new ptrace facility Add arch_ptrace_untrace() function that is called when the tracer detaches (either voluntarily or when the tracing task dies); ptrace_disable() is only called on a voluntary detach. Add ptrace_fork() and arch_ptrace_fork(). They are called when a traced task is forked. Clear DS and BTS related fields on fork. Release DS resources and reclaim memory in ptrace_untrace(). This releases resources already when the tracing task dies. We used to do that when the traced task dies. Signed-off-by: Markus Metzger Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed