Skip to content

perf tools: Power7 events name available for perf

Runzhen Wang linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v21 of 2 patches 18 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf tools: fix a typo of a Power7 event nameDocumentation/ABI/testing/sysfs-bus-event_source-devices-events arch/powerpc/perf/power7-pmu.c+7 -70 replies
2/2perf tools: Make Power7 events available for perfarch/powerpc/include/asm/perf_event_server.h arch/powerpc/perf/power7-events-list.h arch/powerpc/perf/power7-pmu.c+582 -1185 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichael Ellerman
SeriesA-b
1/2
2/2

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

Read the v3 thread

Cover letter [PATCH v3 0/2] perf tools: Power7 events name available for perf

Thank for Sukadev Bhattip and Xiao Guangrong's help. Thank for Michael Ellerman's review.

ChangeLog: v2 -> v3:

1. Adding a leading zero to all the events code in "power7-events-list.h" which don't have a PMC, so that they all line up vertically.

ChangeLog: v1 -> v2:

1. As Michael Ellerman suggested, I added runtime overhead information in the 0002 patch's description.

2. Put the events name in a new head file which is named "power7-events-list.h", and use several macros, such as,

   #define EVENT(_name, _code)     POWER_EVENT_ATTR(_name, _code)
   #include "power7-events-list.h"
   #undef EVENT

to generate different outputs.

Thanks
Runzhen Wang

Runzhen Wang (2):
perf tools: fix a typo of a Power7 event name perf tools: Make Power7 events available for perf

 .../testing/sysfs-bus-event_source-devices-events  |    2 +-
 arch/powerpc/include/asm/perf_event_server.h       |    4 +-
 arch/powerpc/perf/power7-events-list.h             |  548 ++++++++++++++++++++
 arch/powerpc/perf/power7-pmu.c                     |  150 ++----
 4 files changed, 584 insertions(+), 120 deletions(-)
 create mode 100644 arch/powerpc/perf/power7-events-list.h
Signature · 1 line
1.7.9.5