Re: [PATCH] oprofile: Allow setting EDGE/INV/CMASK for Intelcounter events v2
From: Robert Richter
Date: Thu Mar 24 2011 - 14:41:20 EST
On 16.03.11 15:44:33, Andi Kleen wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> For some performance events it's useful to set the EDGE and INV
> bits and the CMASK mask in the counter control register. The list
> of predefined events Intel releases for each CPU has some events which
> require these settings to get more "natural" to use higher level events.
>
> oprofile currently doesn't allow this.
>
> This patch adds new extra configuration fields for them, so that
> they can be specified in oprofilefs.
>
> An updated oprofile daemon can then make use of this to set them.
>
> v2: Write back masked extra value to variable.
> Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> ---
> arch/x86/oprofile/nmi_int.c | 5 +++++
> arch/x86/oprofile/op_counter.h | 1 +
> 2 files changed, 6 insertions(+), 0 deletions(-)
Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git core
Thanks Andi,
-Robert
--
Advanced Micro Devices, Inc.
Operating System Research Center
--
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/