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

2021-02-10 Thread Michael Ellerman
On Wed, 3 Feb 2021 01:55:34 -0500, Athira Rajeev wrote:
> 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.
> 
> [...]

Patches 1 & 2 applied to powerpc/next.

[1/3] powerpc/perf: Include PMCs as part of per-cpu cpuhw_events struct
  https://git.kernel.org/powerpc/c/91f3469a43fd1fb831649c2a2e684bf5ad4818b2
[2/3] powerpc/perf: Expose Performance Monitor Counter SPR's as part of 
extended regs
  https://git.kernel.org/powerpc/c/e79b76e03b712e42c58d9649c92571e346abc38b

cheers


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

2021-02-02 Thread Athira Rajeev
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(-)

-- 
1.8.3.1