lkml.org 
[lkml]   [2008]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-12-20 09:21    [W:3.031 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site