lkml.org 
[lkml]   [2020]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] perf/x86/rapl: Enable RAPL for AMD Fam17h
On Fri, May 15, 2020 at 02:57:30PM -0700, Stephane Eranian wrote:
> 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%)

looks good to me, intel rapl keeps working for me ;-)

Acked-by: Jiri Olsa <jolsa@redhat.com>

thanks,
jirka

\
 
 \ /
  Last update: 2020-05-18 10:53    [W:0.097 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site