18 #include <perfmon/perfmon.h>
25 int col = va_arg (*args,
int);
26 f64 tr =
r->time_running * 1e-9;
31 s =
format (s,
"%9.2f", tr);
35 s =
format (s,
"%9.2f", (
f64)
r->value[0] * 64 * 1e-6 / tr);
39 s =
format (s,
"%9.2f", (
f64)
r->value[1] * 64 * 1e-6 / tr);
44 (
f64) (
r->value[0] +
r->value[1]) * 64 * 1e-6 / tr);
54 .name =
"memory-bandwidth",
55 .description =
"memory reads and writes per memory controller channel",
56 .source =
"intel-uncore",
58 .events[0] = INTEL_UNCORE_E_IMC_UNC_M_CAS_COUNT_RD,
59 .events[1] = INTEL_UNCORE_E_IMC_UNC_M_CAS_COUNT_WR,
63 "Writes (MB/s)",
"Total (MB/s)"),