]> git.baikalelectronics.ru Git - kernel.git/commit
perf, x86: Add support for AMD family 15h core counters
authorRobert Richter <robert.richter@amd.com>
Wed, 2 Feb 2011 16:36:12 +0000 (17:36 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Feb 2011 12:30:53 +0000 (13:30 +0100)
commit8c89a0883b58d0af8363a21b666a2ed06fbcfded
tree5c08ce1b206375eb457f1d467f5eeac6981c8954
parent7f01c0ca27db811068e0089d86e21b45c6351221
perf, x86: Add support for AMD family 15h core counters

This patch adds support for AMD family 15h core counters. There are
major changes compared to family 10h. First, there is a new perfctr
msr range for up to 6 counters. Northbridge counters are separate
now. This patch only adds support for core counters. Second, certain
events may only be scheduled on certain counters. For this we need to
extend the event scheduling and constraints.

We use cpu feature flags to calculate family 15h msr address offsets.
This way we later can implement a faster ALTERNATIVE() version for
this.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20110215135210.GB5874@erda.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/cpufeature.h
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_amd.c