lkml.org 
[lkml]   [2011]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRE: [PATCH v2 5/5] perf: Enable applicable siblings when group leader is enable-on-exec
From
Date
On Tue, 2011-11-22 at 14:20 +0000, Zhu, DengCheng wrote:
> > @@ -2463,11 +2461,25 @@ static int event_enable_on_exec(struct p
> > if (event->state >= PERF_EVENT_STATE_INACTIVE)
> > return 0;
> >
> > - __perf_event_mark_enabled(event, ctx);
> > + event->state = PERF_EVENT_STATE_INACTIVE;
> >
> > return 1;
> > }
>
> By simply setting the event state in here, we bypass time stamp stuff as a result.
> This might lead to inaccuracies...

Ah, but it calls a __perf_event_mark_enabled() at the tail of
group_enable_on_exec() which should fix that up, right?


\
 
 \ /
  Last update: 2011-11-22 15:25    [W:0.076 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site