Skip to content

Fixes for perf probe issues on ppc

Naveen N. Rao linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest7 patches 9 repliesIn review

Changes in v3 from the cover letter

The primary change is with the use of __weak functions instead of compiler macros. Along with that, I have also addressed all previous review comments (*). Individual patches have the detailed changelog. Please note that I have dropped the first (kernel) patch from the last series since it has been pushed upstream. This series now only includes the rest of the patches.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf probe: Improve detection of file/function name in the probe patterntools/perf/util/probe-event.c+26 -31 reply
2/7perf probe/ppc: Fix symbol fixup issues due to ELF typetools/perf/arch/powerpc/util/Build tools/perf/arch/powerpc/util/sym-handling.c tools/perf/util/symbol-elf.c +1 more+30 -21 reply
3/7perf probe/ppc: Use the right prefix when ignoring SyS symbols on ppctools/perf/arch/powerpc/util/sym-handling.c tools/perf/util/symbol.c tools/perf/util/symbol.h+37 -90 replies
4/7perf probe/ppc: Enable matching against dot symbols automaticallytools/perf/arch/powerpc/util/sym-handling.c tools/perf/util/map.c tools/perf/util/map.h +1 more+22 -30 replies
5/7perf probe/ppc64le: Fix ppc64 ABIv2 symbol decodingtools/perf/arch/powerpc/util/sym-handling.c tools/perf/util/symbol-elf.c tools/perf/util/symbol.h+12 -00 replies
6/7perf probe/ppc64le: Prefer symbol table lookup over DWARFtools/perf/arch/powerpc/util/sym-handling.c tools/perf/util/probe-event.c tools/perf/util/probe-event.h+17 -00 replies
7/7perf probe/ppc64le: 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+22 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSrikar DronamrajuMasami Hiramatsu
SeriesA-b
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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/7] Fixes for perf probe issues on ppc

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.

Arnaldo,
I have moved all patches to use __weak functions. Kindly take a look and let me know if this is what you had in mind.

Thanks!
- Naveen

----
Changes since v2:
The primary change is with the use of __weak functions instead of compiler macros. Along with that, I have also addressed all previous review comments (*). Individual patches have the detailed changelog. Please note that I have dropped the first (kernel) patch from the last series since it has been pushed upstream. This series now only includes the rest of the patches.

(*) http://thread.gmane.org/gmane.linux.kernel/1851128

Naveen N. Rao (7):
perf probe: Improve detection of file/function name in the probe
pattern
perf probe/ppc: Fix symbol fixup issues due to ELF type perf probe/ppc: Use the right prefix when ignoring SyS symbols on ppc perf probe/ppc: Enable matching against dot symbols automatically perf probe/ppc64le: Fix ppc64 ABIv2 symbol decoding
perf probe/ppc64le: Prefer symbol table lookup over DWARF perf probe/ppc64le: Fixup function entry if using kallsyms lookup

 tools/perf/arch/powerpc/util/Build          |  1 +
 tools/perf/arch/powerpc/util/sym-handling.c | 80 +++++++++++++++++++++++++++++
 tools/perf/util/map.c                       |  5 ++
 tools/perf/util/map.h                       |  3 +-
 tools/perf/util/probe-event.c               | 42 +++++++++++++--
 tools/perf/util/probe-event.h               |  3 ++
 tools/perf/util/symbol-elf.c                | 12 ++++-
 tools/perf/util/symbol.c                    | 25 +++++----
 tools/perf/util/symbol.h                    | 10 ++++
 9 files changed, 164 insertions(+), 17 deletions(-)
 create mode 100644 tools/perf/arch/powerpc/util/sym-handling.c
Signature · 1 line
2.3.5