aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2014-02-11 10:20:14 -0500
committerThomas Gleixner <tglx@linutronix.de>2014-02-21 15:49:08 -0500
commite9d9768824a18212712ae3afbebd5bfef05176f4 (patch)
tree722a90dd55392c2b21dde5e945af974a87fbf615
parentced2efb099f4f24ea7030c22b064e5ddd65cd764 (diff)
perf/x86/uncore: use MiB unit for events for SNB/IVB/HSW IMC
This patch makes perf use Mebibytes to display the counts of uncore_imc/data_reads/ and uncore_imc/data_writes. 1MiB = 1024*1024 bytes. Cc: mingo@elte.hu Cc: acme@redhat.com Cc: ak@linux.intel.com Cc: zheng.z.yan@intel.com Cc: peterz@infradead.org Signed-off-by: Stephane Eranian <eranian@google.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1392132015-14521-9-git-send-email-eranian@google.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--arch/x86/kernel/cpu/perf_event_intel_uncore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
index 7760aeeefeac..de5c56899ae3 100644
--- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c
+++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
@@ -1679,12 +1679,12 @@ enum {
1679 1679
1680static struct uncore_event_desc snb_uncore_imc_events[] = { 1680static struct uncore_event_desc snb_uncore_imc_events[] = {
1681 INTEL_UNCORE_EVENT_DESC(data_reads, "event=0x01"), 1681 INTEL_UNCORE_EVENT_DESC(data_reads, "event=0x01"),
1682 INTEL_UNCORE_EVENT_DESC(data_reads.scale, "64"), 1682 INTEL_UNCORE_EVENT_DESC(data_reads.scale, "6.103515625e-5"),
1683 INTEL_UNCORE_EVENT_DESC(data_reads.unit, "bytes"), 1683 INTEL_UNCORE_EVENT_DESC(data_reads.unit, "MiB"),
1684 1684
1685 INTEL_UNCORE_EVENT_DESC(data_writes, "event=0x02"), 1685 INTEL_UNCORE_EVENT_DESC(data_writes, "event=0x02"),
1686 INTEL_UNCORE_EVENT_DESC(data_writes.scale, "64"), 1686 INTEL_UNCORE_EVENT_DESC(data_writes.scale, "6.103515625e-5"),
1687 INTEL_UNCORE_EVENT_DESC(data_writes.unit, "bytes"), 1687 INTEL_UNCORE_EVENT_DESC(data_writes.unit, "MiB"),
1688 1688
1689 { /* end: all zeroes */ }, 1689 { /* end: all zeroes */ },
1690}; 1690};