Skip to content

perf: Fixes for callchain ip handling on powerpc

Sandipan Das lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Consider case when return address is in R0 as pointed out by Ravi.
- Add another patch to fix crash when callchain is empty.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf tools powerpc: Fix callchain ip filteringtools/perf/arch/powerpc/util/skip-callchain-idx.c+44 -280 replies
2/3perf tools powerpc: Fix crash if callchain is emptytools/perf/arch/powerpc/util/skip-callchain-idx.c+1 -10 replies
3/3perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64tools/perf/tests/shell/record+probe_libc_inet_pton.sh+8 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchRavi Bangoria
SeriesT-b
1/3
2/3
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] perf: Fixes for callchain ip handling on powerpc

The first patch fixes the callchain ip filtering mechanism for powerpc from skipping entries in case the LR value is still valid and yet to be written to the stack frame. This was previously posted as an RFC
here: https://lkml.org/lkml/2018/4/4/633

The second patch fixes a crash caused by attempting to access an empty callchain.

The third patch fixes a shell test which used to fail on powerpc as the back trace from perf output did not match the expected pattern. Also, because of the issue described in the first patch, some entries from the callchain were incorrectly skipped. So, this has also been readjusted to work with the fix in the first patch.

v2:
- Consider case when return address is in R0 as pointed out by Ravi.
- Add another patch to fix crash when callchain is empty.

Sandipan Das (3):
perf tools powerpc: Fix callchain ip filtering perf tools powerpc: Fix crash if callchain is empty perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64

 tools/perf/arch/powerpc/util/skip-callchain-idx.c  | 74 +++++++++++++---------
 .../tests/shell/record+probe_libc_inet_pton.sh     |  8 +++
 2 files changed, 53 insertions(+), 29 deletions(-)
Signature · 1 line
2.14.3