perf/x86/amd: Add support for AMD NB and L2I "uncore" counters
authorJacob Shin <jacob.shin@amd.com>
Fri, 19 Apr 2013 21:34:28 +0000 (16:34 -0500)
committerIngo Molnar <mingo@kernel.org>
Sun, 21 Apr 2013 09:01:24 +0000 (11:01 +0200)
commitc43ca5091a374c1f6778bd7e4a39a5a10735a917
treef9bc7384913f2c173d871cd506f9fec521cfc458
parente850f9c33c0c7cc4097ae29f6f8d633237d235e6
perf/x86/amd: Add support for AMD NB and L2I "uncore" counters

Add support for AMD Family 15h [and above] northbridge
performance counters. MSRs 0xc0010240 ~ 0xc0010247 are shared
across all cores that share a common northbridge.

Add support for AMD Family 16h L2 performance counters. MSRs
0xc0010230 ~ 0xc0010237 are shared across all cores that share a
common L2 cache.

We do not enable counter overflow interrupts. Sampling mode and
per-thread events are not supported.

Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Stephane Eranian <eranian@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20130419213428.GA8229@jshin-Toonie
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/cpufeature.h
arch/x86/include/uapi/asm/msr-index.h
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/perf_event_amd_uncore.c [new file with mode: 0644]