Skip to content

perf/x86: various RAPL improvements and fixes

Stephane Eranian lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf/x86: fix active_entry initializationinclude/linux/perf_event.h kernel/events/core.c+4 -42 replies
2/2perf/x86: add RAPL PP1 energy counter supportarch/x86/kernel/cpu/perf_event_intel_rapl.c+24 -70 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMaria Dimakopoulou
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] perf/x86: various RAPL improvements and fixes

This short patch series provides the following improvements to the RAPL support for perf_events:
- support for RAPL PP1 energy counter
- fix struct perf_event active_list field initialization

The PP1 counter maps to the builtin graphic card for client processors. that is why it is called energy-gpu.

The new energy event is:
- name: power/energy-gpu/
- code: 0x4
- unit: Joules
- scaling factor: 2^-32 Joules.

In v2, we renamed energy-pp1 to energy-gpu. We dropped the Haswell Celeron patch because it is committed already. But we add a fix for the broken initialization of the active_entry list.

Stephane Eranian (2):
perf/x86: fix active_entry initialization
perf/x86: add RAPL PP1 energy counter support

 arch/x86/kernel/cpu/perf_event_intel_rapl.c |   31 +++++++++++++++++++++------
 include/linux/perf_event.h                  |    6 ++----
 kernel/events/core.c                        |    2 ++
 3 files changed, 28 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.9.5