]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
oprofile: Implement Intel architectural perfmon support
authorAndi Kleen <ak@linux.intel.com>
Mon, 18 Aug 2008 12:50:31 +0000 (14:50 +0200)
committerRobert Richter <robert.richter@amd.com>
Mon, 13 Oct 2008 17:25:09 +0000 (19:25 +0200)
commitb99170288421c79f0c2efa8b33e26e65f4bb7fb8
tree7580ce405a4dbbd2c57fbc9a129102481467e281
parentf645f6406463a01869c50844befc76d528971690
oprofile: Implement Intel architectural perfmon support

Newer Intel CPUs (Core1+) have support for architectural
events described in CPUID 0xA. See the IA32 SDM Vol3b.18 for details.

The advantage of this is that it can be done without knowing about
the specific CPU, because the CPU describes by itself what
performance events are supported. This is only a fallback
because only a limited set of 6 events are supported.
This allows to do profiling on Nehalem and on Atom systems
(later not tested)

This patch implements support for that in oprofile's Intel
Family 6 profiling module. It also has the advantage of supporting
an arbitary number of events now as reported by the CPU.
Also allow arbitary counter widths >32bit while we're at it.

Requires a patched oprofile userland to support the new
architecture.

v2: update for latest oprofile tree
    remove force_arch_perfmon

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_model_ppro.c
arch/x86/oprofile/op_x86_model.h