Re: [PATCH 3/4] perf: Support for irq exclusion
From: Frederic Weisbecker
Date: Fri May 21 2010 - 10:06:25 EST
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@xxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxx>
> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> Cc: Paul Mackerras <paulus@xxxxxxxxx>
> ---
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/