[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081220081755.GA5581@elte.hu>
Date: Sat, 20 Dec 2008 09:17:55 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Markus Metzger <markus.t.metzger@...el.com>
Cc: linux-kernel@...r.kernel.org, tglx@...utronix.de, hpa@...or.com,
markus.t.metzger@...il.com, roland@...hat.com,
eranian@...glemail.com
Subject: Re: [patch 1/2] x86, bts: fork and exit handling
* Markus Metzger <markus.t.metzger@...el.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@...el.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists