Messages in this thread | | | Date | Sat, 20 Dec 2008 09:17:55 +0100 | From | Ingo Molnar <> | Subject | Re: [patch 1/2] x86, bts: fork and exit handling |
| |
* Markus Metzger <markus.t.metzger@intel.com> wrote:
> 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 <markus.t.metzger@intel.com>
applied to tip/tracing/hw-branch-tracer, thanks Markus! It's a nice cleanup too - to tear down any arch-level ptrace state that might come around.
Ingo
| |