lkml.org 
[lkml]   [2010]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf: change event inheritance logic in stat and record
On Wed, May 12, 2010 at 10:40:01AM +0200, Stephane Eranian wrote:
> By default, event inheritance across fork and pthread_create was
> on but the -i option of stat and record, which enabled inheritance,
> led to believe it was off by default.
>
> This patch fixes this logic by inverting the meaning of the -i option.
> By default inheritance is on whether you attach to a process (-p), a
> thread (-t) or start a process. If you pass -i, then you turn off
> inheritance. Turning off inheritance if you don't need it, helps
> limit perf resource usage as well.
>
> The patch also fixes perf stat -t xxxx and perf record -t xxxx
> which did not start the counters.
>
> Signed-off-by: Stephane Eranian <eranian@google.com>


Acked-by: Frederic Weisbecker <fweisbec@gmail.com>



\
 
 \ /
  Last update: 2010-05-12 17:27    [W:0.053 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site