All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf/x86/rapl: enable Broadwell-U RAPL support
@ 2015-04-23  7:07 Stephane Eranian
  2015-05-11 12:46 ` [tip:perf/core] perf/x86/rapl: Enable " tip-bot for Stephane Eranian
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Eranian @ 2015-04-23  7:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: peterz, ak, jacob.jun.pan, kan.liang, mingo, sonnyrao


This patch enables RAPL counters (energy consumption counters)
support for Intel Broadwell-U processors (Model 61).

To use:
 $ perf stat -a -I 1000 -e power/energy-cores/,power/energy-pkg/,power/energy-ram/ sleep 10

Signed-off-by: Stephane Eranian <eranian@google.com>
---
 arch/x86/kernel/cpu/perf_event_intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/cpu/perf_event_intel_rapl.c b/arch/x86/kernel/cpu/perf_event_intel_rapl.c
index 999289b9..358c54a 100644
--- a/arch/x86/kernel/cpu/perf_event_intel_rapl.c
+++ b/arch/x86/kernel/cpu/perf_event_intel_rapl.c
@@ -722,6 +722,7 @@ static int __init rapl_pmu_init(void)
 		break;
 	case 60: /* Haswell */
 	case 69: /* Haswell-Celeron */
+	case 61: /* Broadwell */
 		rapl_cntr_mask = RAPL_IDX_HSW;
 		rapl_pmu_events_group.attrs = rapl_events_hsw_attr;
 		break;
-- 
2.1.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-11 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23  7:07 [PATCH] perf/x86/rapl: enable Broadwell-U RAPL support Stephane Eranian
2015-05-11 12:46 ` [tip:perf/core] perf/x86/rapl: Enable " tip-bot for Stephane Eranian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.