Skip to content

tools/perf: Add instruction and data address registers to extended regs in powerpc

Athira Rajeev linux-perf-users linuxppc-dev 4 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesApplied
  2. v34 patches 2 repliesSuperseded
  3. v24 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches9 repliesSuperseded

Changes in v4 from the cover letter

- Spilt tools side patches separately since kernel side changes are in powerpc/next. There is no code wise changes from v3.
Link to previous version:
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=265811&state=*

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2tools/perf: Refactor the code definition of perf reg extended mask in tools side header filetools/arch/powerpc/include/uapi/asm/perf_regs.h+13 -80 replies
2/2tools/perf: Add perf tools support to expose instruction and data address registers 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+11 -40 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKajol Jain
1/2R-b
2/2R-b

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

Read the v4 thread

Cover letter [V4 0/2] tools/perf: Add instruction and data address registers to extended regs in powerpc

Patch set adds PMU registers namely Sampled Instruction Address Register (SIAR) and Sampled Data Address Register (SDAR) as part of extended regs in PowerPC. These registers provides the instruction/data address and adding these to extended regs helps in debug purposes.

Patch 1/2 refactors the existing macro definition of PERF_REG_PMU_MASK_300 and PERF_REG_PMU_MASK_31 to make it more readable.
Patch 2/2 includes perf tools side changes to add the SPRs to sample_reg_mask to use with -I? option.

Changelog:
Change from v3 -> v4:
- Spilt tools side patches separately since kernel side changes are in powerpc/next. There is no code wise changes from v3.
Link to previous version:
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=265811&state=*

Kernel patches are taken to powerpc/next:
[1/4] powerpc/perf: Refactor the code definition of perf reg extended mask
https://git.kernel.org/powerpc/c/02b182e67482d9167a13a0ff19b55037b70b21ad
[3/4] powerpc/perf: Expose instruction and data address registers as part of extended regs
https://git.kernel.org/powerpc/c/29908bbf7b8960d261dfdd428bbaa656275e80f3

Change from v2 -> v3:
Addressed review comments from Michael Ellerman
- Fixed the macro definition to use "unsigned long long" which otherwise will cause build error with perf on 32-bit.
- Added Reviewed-by from Daniel Axtens for patch3.

Change from v1 -> v2:
Addressed review comments from Michael Ellerman
- Refactored the perf reg extended mask value macros for PERF_REG_PMU_MASK_300 and PERF_REG_PMU_MASK_31 to make it more readable. Also moved PERF_REG_EXTENDED_MAX along with enum definition similar to PERF_REG_POWERPC_MAX.

Athira Rajeev (2):
tools/perf: Refactor the code definition of perf reg extended mask in
tools side header file
tools/perf: Add perf tools support to expose instruction and data
address registers as part of extended regs

 .../arch/powerpc/include/uapi/asm/perf_regs.h | 28 ++++++++++++-------
 tools/perf/arch/powerpc/include/perf_regs.h   |  2 ++
 tools/perf/arch/powerpc/util/perf_regs.c      |  2 ++
 3 files changed, 22 insertions(+), 10 deletions(-)
Signature · 1 line
2.33.0