Messages in this thread | | | Subject | Re: [PATCH 1/2] perf: Add persistent event facilities | From | Peter Zijlstra <> | Date | Fri, 18 May 2012 12:00:33 +0200 |
| |
On Wed, 2012-03-21 at 15:34 +0100, Borislav Petkov wrote: > @@ -6319,6 +6332,10 @@ __perf_event_exit_task(struct perf_event *child_event, > raw_spin_unlock_irq(&child_ctx->lock); > } > > + /* do not remove persistent events on task exit */ > + if (child_event->attr.persistent) > + return; > + > perf_remove_from_context(child_event); >
Huh, the task it dying, why would you let the event stay in the task context?
| |