]> git.baikalelectronics.ru Git - kernel.git/commit
oprofile, x86: Allow setting EDGE/INV/CMASK for counter events
authorAndi Kleen <ak@linux.intel.com>
Wed, 16 Mar 2011 19:44:33 +0000 (15:44 -0400)
committerRobert Richter <robert.richter@amd.com>
Thu, 24 Mar 2011 17:45:44 +0000 (18:45 +0100)
commita755e221936624f79da2582c9267d16bb8c54f01
treed55c23e10b7c7959d6e4b1a7aba30369e89a5d72
parentadb2a9efdf9cc63f9771f6ebcd5a154d9a3dbc26
oprofile, x86: Allow setting EDGE/INV/CMASK for counter events

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>
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/op_counter.h