Skip to content

: perf: Make POWER7 events available in sysfs

Sukadev Bhattiprolu linuxppc-dev lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 12 repliesIn review
  2. v3 posting 3/36 patches 9 repliesSuperseded
  3. v3 posting 2/35 of 6 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v3 posting 1/36 patches0 repliesSuperseded
v15 patches4 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6: perf/Power7: Use macros to identify perf eventsarch/powerpc/perf/power7-pmu.c+20 -81 reply
2/6: perf: Make EVENT_ATTR globalarch/x86/kernel/cpu/perf_event.c include/linux/perf_event.h+14 -101 reply
3/6: perf/POWER7: Make generic event translations available in sysfsDocumentation/ABI/stable/sysfs-devices-cpu-events arch/powerpc/include/asm/perf_event_server.h arch/powerpc/perf/core-book3s.c +1 more+70 -01 reply
4/6: perf/POWER7: Make some POWER7 events available in sysfsarch/powerpc/include/asm/perf_event_server.h arch/powerpc/perf/power7-pmu.c+20 -01 reply
5/6: perf: Create a sysfs entry for Power event formatarch/powerpc/include/asm/perf_event_server.h arch/powerpc/perf/core-book3s.c arch/powerpc/perf/power7-pmu.c+19 -07 replies
6/6: perf: Document the ABI of perf sysfs entriesDocumentation/ABI/stable/sysfs-devices-cpu-events Documentation/ABI/testing/sysfs-bus-event_source-devices-events+62 -01 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchJiri OlsaPaul MackerrasMichael Ellerman
1/6A-b A-b
2/6A-b A-b
3/6
4/6
5/6A-b T-b
6/6A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH 0/6][v4]: perf: Make POWER7 events available in sysfs

[PATCH 0/6][v4]: perf: Make POWER7 events available in sysfs

Make the generic and some POWER7-specific perf events available in sysfs. These changes mainly extend similar functionality implemented in x86 to work on POWER architecture as well.

Thanks to input from Stephane Eranian, Robert Richter, Peter Ziljstra and Jiri Olsa.

Changelog[v4]:
[Jiri Olsa]: Document that multiple event= like terms can be specified in the 'events' file.
[Jiri Olsa]: Remove the documentation for the 'config format' file as it is already documented in 'Documentation/ABI/testing/' [Jiri Olsa]: Move the ABI documentaion from 'stable/' to 'testing/'.

Changelog[v3]:
[Jiri Olsa]: No need to define EVENT_ID, PMU_EVENT_PTR() if used only once
[Greg KH]: Document the new sysfs interfaces in Documenation/ABI

Changelog[v2]:
[Jiri Olsa] Use PMU_FORMAT_ATTR() rather than duplicating code.

Sukadev Bhattiprolu (6):
perf/Power7: Use macros to identify perf events
perf: Make EVENT_ATTR global
perf/POWER7: Make generic event translations available in sysfs perf/POWER7: Make some POWER7 events available in sysfs
perf: Create a sysfs entry for Power event format
perf: Document the ABI of perf sysfs entries

 .../testing/sysfs-bus-event_source-devices-events  |   62 +++++++++++++++
 arch/powerpc/include/asm/perf_event_server.h       |   32 ++++++++
 arch/powerpc/perf/core-book3s.c                    |   24 ++++++
 arch/powerpc/perf/power7-pmu.c                     |   81 ++++++++++++++++++--
 arch/x86/kernel/cpu/perf_event.c                   |   13 +---
 include/linux/perf_event.h                         |   11 +++
 6 files changed, 205 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices-events