Re: [patch 1/2] x86, bts: fork and exit handling

From: Ingo Molnar
Date: Sat Dec 20 2008 - 03:18:27 EST



* Markus Metzger <markus.t.metzger@xxxxxxxxx> 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@xxxxxxxxx>

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/