perf/x86/intel/uncore: Add Broadwell-U uncore IMC PMU support
authorStephane Eranian <eranian@google.com>
Thu, 23 Apr 2015 06:56:42 +0000 (08:56 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 11 May 2015 09:57:47 +0000 (11:57 +0200)
commita41f3c8cd4e28dcbebd8ec27a9602c86cfa5f009
tree14811ce12bf42e89661d02abd304018dd88c36b8
parentf7dc7fd1c08c6d8109688694fd93d80645df89ff
perf/x86/intel/uncore: Add Broadwell-U uncore IMC PMU support

This patch enables the uncore Memory Controller (IMC) PMU
support for Intel Broadwell-U (Model 61) mobile processors.
The IMC PMU enables measuring memory bandwidth.

To use with perf:
$ perf stat -a -I 1000 -e
uncore_imc/data_reads/,uncore_imc/data_writes/ sleep 10

Tested-by: Sonny Rao <sonnyrao@chromium.org>
Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kan.liang@intel.com
Cc: peterz@infradead.org
Link: http://lkml.kernel.org/r/20150423065642.GA4890@thinkpad
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c
arch/x86/kernel/cpu/perf_event_intel_uncore.h
arch/x86/kernel/cpu/perf_event_intel_uncore_snb.c