[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100521140623.GK30108@nowhere>
Date: Fri, 21 May 2010 16:06:25 +0200
From: Frederic Weisbecker <fweisbec@...il.com>
To: Ingo Molnar <mingo@...e.hu>
Cc: LKML <linux-kernel@...r.kernel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Paul Mackerras <paulus@...ba.org>
Subject: Re: [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@...il.com>
> Cc: Ingo Molnar <mingo@...e.hu>
> Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
> Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
> Cc: Paul Mackerras <paulus@...ba.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists