Skip to content

powerpc/perf: Add Performance Monitor Counters to extended regs

Athira Rajeev linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc/perf: Include PMCs as part of per-cpu cpuhw_events structarch/powerpc/perf/core-book3s.c+11 -60 replies
2/3powerpc/perf: Expose Performance Monitor Counter SPR's as part of extended regsarch/powerpc/include/asm/perf_event.h arch/powerpc/include/uapi/asm/perf_regs.h arch/powerpc/perf/core-book3s.c +1 more+39 -150 replies
3/3tools/perf: Add perf tools support to expose Performance Monitor Counter SPRs as part of extended regstools/arch/powerpc/include/uapi/asm/perf_regs.h tools/perf/arch/powerpc/include/perf_regs.h tools/perf/arch/powerpc/util/perf_regs.c+34 -62 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] powerpc/perf: Add Performance Monitor Counters to extended regs

Patch set to add Performance Monitor Counter SPR's as part of extended regs in powerpc.

Patch 1/3 saves the PMC values in the perf interrupt handler as part of per-cpu array.
Patch 2/3 adds PMC1 to PMC6 as part of the extended regs mask.
Patch 3/3 includes perf tools side changes to add PMC1 to PMC6 to sample_reg_mask to use with -I? option.

Athira Rajeev (3):
powerpc/perf: Include PMCs as part of per-cpu cpuhw_events struct powerpc/perf: Expose Performance Monitor Counter SPR's as part of
extended regs
tools/perf: Add perf tools support to expose Performance Monitor
Counter SPRs as part of extended regs

 arch/powerpc/include/asm/perf_event.h           |  2 ++
 arch/powerpc/include/uapi/asm/perf_regs.h       | 28 +++++++++++++++++++------
 arch/powerpc/perf/core-book3s.c                 | 28 +++++++++++++++++++------
 arch/powerpc/perf/perf_regs.c                   | 13 ++++--------
 tools/arch/powerpc/include/uapi/asm/perf_regs.h | 28 +++++++++++++++++++------
 tools/perf/arch/powerpc/include/perf_regs.h     |  6 ++++++
 tools/perf/arch/powerpc/util/perf_regs.c        |  6 ++++++
 7 files changed, 84 insertions(+), 27 deletions(-)
Signature · 1 line
1.8.3.1