From: Frederic Weisbecker on
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(a)gmail.com>
> Cc: Ingo Molnar <mingo(a)elte.hu>
> Cc: Peter Zijlstra <a.p.zijlstra(a)chello.nl>
> Cc: Arnaldo Carvalho de Melo <acme(a)redhat.com>
> Cc: Paul Mackerras <paulus(a)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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/