Skip to content

Commit c0737ce

Browse files
Andi KleenIngo Molnar
authored andcommitted
perf/x86/intel/uncore: Add scaling units to the EP iMC events
Add scaling to MB/s to the memory controller read/write events for Sandy/IvyBridge/Haswell-EP similar to how the client does. This makes the events easier to use from the standard perf tool. Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent f108c89 commit c0737ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/x86/kernel/cpu/perf_event_intel_uncore_snbep.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,11 @@ static struct attribute *snbep_uncore_qpi_formats_attr[] = {
449449
static struct uncore_event_desc snbep_uncore_imc_events[] = {
450450
INTEL_UNCORE_EVENT_DESC(clockticks, "event=0xff,umask=0x00"),
451451
INTEL_UNCORE_EVENT_DESC(cas_count_read, "event=0x04,umask=0x03"),
452+
INTEL_UNCORE_EVENT_DESC(cas_count_read.scale, "6.103515625e-5"),
453+
INTEL_UNCORE_EVENT_DESC(cas_count_read.unit, "MiB"),
452454
INTEL_UNCORE_EVENT_DESC(cas_count_write, "event=0x04,umask=0x0c"),
455+
INTEL_UNCORE_EVENT_DESC(cas_count_write.scale, "6.103515625e-5"),
456+
INTEL_UNCORE_EVENT_DESC(cas_count_write.unit, "MiB"),
453457
{ /* end: all zeroes */ },
454458
};
455459

@@ -2036,7 +2040,11 @@ static struct intel_uncore_type hswep_uncore_ha = {
20362040
static struct uncore_event_desc hswep_uncore_imc_events[] = {
20372041
INTEL_UNCORE_EVENT_DESC(clockticks, "event=0x00,umask=0x00"),
20382042
INTEL_UNCORE_EVENT_DESC(cas_count_read, "event=0x04,umask=0x03"),
2043+
INTEL_UNCORE_EVENT_DESC(cas_count_read.scale, "6.103515625e-5"),
2044+
INTEL_UNCORE_EVENT_DESC(cas_count_read.unit, "MiB"),
20392045
INTEL_UNCORE_EVENT_DESC(cas_count_write, "event=0x04,umask=0x0c"),
2046+
INTEL_UNCORE_EVENT_DESC(cas_count_write.scale, "6.103515625e-5"),
2047+
INTEL_UNCORE_EVENT_DESC(cas_count_write.unit, "MiB"),
20402048
{ /* end: all zeroes */ },
20412049
};
20422050

0 commit comments

Comments
 (0)