lkml.org 
[lkml]   [2011]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 24 Mar 2011 19:41:00 +0100
FromRobert Richter <>
SubjectRe: [PATCH] oprofile: Allow setting EDGE/INV/CMASK for Intel counter events v2
On 16.03.11 15:44:33, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> 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@linux.intel.com>
> ---
> 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



\
 
 \ /
  Last update: 2011-03-24 19:43    [from the cache]
©2003-2010