[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200518085058.GB3726797@krava>
Date: Mon, 18 May 2020 10:50:58 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Stephane Eranian <eranian@...gle.com>
Cc: linux-kernel@...r.kernel.org, peterz@...radead.org, mingo@...e.hu,
irogers@...gle.com, kim.phillips@....com
Subject: Re: [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@...gle.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@...hat.com>
thanks,
jirka
Powered by blists - more mailing lists