lkml.org 
[lkml]   [2020]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject[PATCH 0/3] perf/x86/rapl: Enable RAPL for AMD Fam17h
From
This patch series adds support for AMD Fam17h RAPL counters. As per
AMD PPR, Fam17h support Package RAPL counters to monitor power usage.
The RAPL counter operates as with Intel RAPL. As such, it is beneficial
to share the code.

The series first moves the rapl.c file to common perf_events x86 and then
adds the support.
From the user's point of view, the interface is identical with
/sys/devices/power. The energy-pkg event is the only one supported.

$ perf stat -a --per-socket -I 1000 -e power/energy-pkg/

Signed-off-by: Stephane Eranian <eranian@google.com>

Stephane Eranian (3):
perf/x86/rapl: move RAPL support to common x86 code
perf/x86/rapl: refactor code for Intel/AMD sharing
perf/x86/rapl: add AMD Fam17h RAPL support

arch/x86/events/Kconfig | 8 ++---
arch/x86/events/Makefile | 1 +
arch/x86/events/intel/Makefile | 2 --
arch/x86/events/probe.c | 4 +++
arch/x86/events/{intel => }/rapl.c | 55 +++++++++++++++++++++++++-----
arch/x86/include/asm/msr-index.h | 3 ++
6 files changed, 58 insertions(+), 15 deletions(-)
rename arch/x86/events/{intel => }/rapl.c (92%)

--
2.26.2.761.g0e0b3e54be-goog

\
 
 \ /
  Last update: 2020-05-15 23:58    [W:0.139 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site