Skip to content

Fix perf probe issues on powerpc

Naveen N. Rao linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 17 repliesIn review
  2. v1 RFC8 patches 20 repliesSuperseded

Changes from previous version from the cover letter

Addressed various review comments from Mike Ellerman largely to generalize changes. Some of the simpler patches have been retained in their previous form to limit code churn, while others have been generalized by introducing arch helpers. Individual patches have more details.

- Naveen

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8kprobes: Fix kallsyms lookup across powerpc ABIv1 and ABIv2arch/powerpc/include/asm/kprobes.h+44 -190 replies
2/8perf probe: Improve detection of file/function name in the probe patterntools/perf/util/probe-event.c+20 -36 replies
3/8perf probe powerpc: Fix symbol fixup issues due to ELF typetools/perf/util/symbol-elf.c+2 -12 replies
4/8perf probe powerpc: Handle powerpc dot symbolstools/perf/util/probe-event.c tools/perf/util/symbol.c+14 -01 reply
5/8perf probe powerpc: Allow matching against dot symbolstools/perf/arch/powerpc/Makefile tools/perf/arch/powerpc/util/sym-handling.c tools/perf/config/Makefile +2 more+40 -52 replies
6/8perf tools powerpc: Fix PPC64 ELF ABIv2 symbol decodingtools/perf/arch/powerpc/util/sym-handling.c tools/perf/util/symbol-elf.c tools/perf/util/symbol.h+18 -01 reply
7/8perf probe powerpc: Use DWARF info only if necessarytools/perf/arch/powerpc/util/sym-handling.c tools/perf/config/Makefile tools/perf/util/probe-event.c +1 more+22 -00 replies
8/8perf probe powerpc: Fixup function entry if using kallsyms lookuptools/perf/arch/powerpc/util/sym-handling.c tools/perf/util/probe-event.c tools/perf/util/probe-event.h+28 -01 reply

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchAnanth N Mavinakayanahalli
1/8
2/8R-b
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v2 thread

Cover letter [PATCHv2 0/8] Fix perf probe issues on powerpc

This patchset fixes various issues with perf probe on powerpc across ABIv1 and ABIv2:
- in the presence of DWARF debug-info,
- in the absence of DWARF, but with the symbol table, and
- in the absence of debug-info, but with kallsyms.

Applies cleanly on -tip. Tested on ppc64 BE and LE.

Changes from previous version:
Addressed various review comments from Mike Ellerman largely to generalize changes. Some of the simpler patches have been retained in their previous form to limit code churn, while others have been generalized by introducing arch helpers. Individual patches have more details.

- Naveen

Naveen N. Rao (8):
kprobes: Fix kallsyms lookup across powerpc ABIv1 and ABIv2 perf probe: Improve detection of file/function name in the probe
pattern
perf probe powerpc: Fix symbol fixup issues due to ELF type perf probe powerpc: Handle powerpc dot symbols
perf probe powerpc: Allow matching against dot symbols perf tools powerpc: Fix PPC64 ELF ABIv2 symbol decoding perf probe powerpc: Use DWARF info only if necessary perf probe powerpc: Fixup function entry if using kallsyms lookup

 arch/powerpc/include/asm/kprobes.h          | 63 +++++++++++++++++++---------
 tools/perf/arch/powerpc/Makefile            |  1 +
 tools/perf/arch/powerpc/util/sym-handling.c | 64 +++++++++++++++++++++++++++++
 tools/perf/config/Makefile                  |  2 +
 tools/perf/util/probe-event.c               | 48 ++++++++++++++++++----
 tools/perf/util/probe-event.h               | 21 ++++++++++
 tools/perf/util/symbol-elf.c                |  5 ++-
 tools/perf/util/symbol.c                    |  6 +++
 tools/perf/util/symbol.h                    |  6 +++
 9 files changed, 188 insertions(+), 28 deletions(-)
 create mode 100644 tools/perf/arch/powerpc/util/sym-handling.c
Signature · 1 line
2.1.3