lkml.org 
[lkml]   [2010]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] perf: Support for irq exclusion
On Fri, May 21, 2010 at 04:05:14PM +0200, Frederic Weisbecker wrote:
> Provide exclude_softirq and exclude_hardirq support in perf
> event attributes. This brings the final pieces to subscribe
> to any desired context granularity of profiling or tracing.
>
> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Cc: Paul Mackerras <paulus@samba.org>
> ---
> include/linux/perf_event.h | 8 +++++---
> kernel/perf_event.c | 42 +++++++++++++++++++++++++++++++-----------
> 2 files changed, 36 insertions(+), 14 deletions(-)
>
> diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
> index d939fc7..ca55ec5 100644
> --- a/include/linux/perf_event.h
> +++ b/include/linux/perf_event.h
> @@ -213,10 +213,12 @@ struct perf_event_attr {
> *
> * See also PERF_RECORD_MISC_EXACT_IP
> */
> - precise_ip : 2, /* skid constraint */
> - exclude_task : 1, /* don't count task context */
> + precise_ip : 2, /* skid constraint */
> + exclude_task : 1, /* don't count task context */
> + exclude_softirq : 1, /* don't count softirq */
> + exclude_hardirq : 1, /* don't count hardirq */
>
> - __reserved_1 : 46;
> + __reserved_1 : 45;


Should be 44.



\
 
 \ /
  Last update: 2010-05-21 16:09    [from the cache]
©2003-2011 Jasper Spaans