perf/x86/rapl: enable Broadwell-U RAPL support
Subsystems (3)
PATCH 1/1 perf/x86/rapl: enable Broadwell-U RAPL support
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 <[email protected]>
--- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/perf_event_intel_rapl.c +1 -0
@@ -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 ;
Signature · 1 line
2.1.0
tip-bot for Stephane Eranian
merge bot[tip:perf/core] perf/x86/rapl: Enable Broadwell-U RAPL support
perf/x86/rapl: Enable Broadwell-U RAPL support
Commit-ID: 44b11fee51711ca85aa2b121a49bf029d18a3722 Gitweb: http://git.kernel.org/tip/44b11fee51711ca85aa2b121a49bf029d18a3722 Author: Stephane Eranian <[email protected]> AuthorDate: Thu, 23 Apr 2015 09:07:09 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 11 May 2015 11:52:30 +0200
perf/x86/rapl: Enable Broadwell-U RAPL support
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 <[email protected]>
Cc <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Brian Gerst <[email protected]>
Cc Denys Vlasenko <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/perf_event_intel_rapl.c +1 -0
@@ -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 ;