]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perf/x86/uncore: Export basic memory events for IVT IMC PMU
authorStephane Eranian <eranian@google.com>
Tue, 12 Aug 2014 06:00:31 +0000 (08:00 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Aug 2014 05:51:17 +0000 (07:51 +0200)
This patch exposes two basic events for Ivytown IMC uncore PMU:

- cas_count_read: number of full-cache line reads to memory controller
- cas_count_write: number of full-cache line writes to memory controller

Those events use the same encoding as for SNB-EP, so reuse the same
event table. See specification in:

http://www.intel.com/content/dam/www/public/us/en/documents/manuals/xeon-e5-2600-v2-uncore-manual.pdf

By aggregating all the read and write events from all the memory controllers
of each processor socket, one can determine the total memory bandwidth utilization.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140812060031.GA25239@quad
Cc: zheng.z.yan@intel.com
Cc: ak@linux.intel.com
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore_snbep.c

index 30468f434e9eae3e2bcd2dd17b026a5f46d0d1a2..00bd0485ed13825e0c4381921a8bdc46670c67b7 100644 (file)
@@ -1422,6 +1422,7 @@ static struct intel_uncore_type ivt_uncore_imc = {
        .fixed_ctr_bits = 48,
        .fixed_ctr      = SNBEP_MC_CHy_PCI_PMON_FIXED_CTR,
        .fixed_ctl      = SNBEP_MC_CHy_PCI_PMON_FIXED_CTL,
+       .event_descs    = snbep_uncore_imc_events,
        IVT_UNCORE_PCI_COMMON_INIT(),
 };