Skip to content

perf script: Add callindent option

Adrian Hunter lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 4 repliesIn review
  2. v2 RFC posting 1/21 of 3 patches 1 replySuperseded
  3. v1 RFC3 patches 2 repliesApplied

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf script: Print sample flags more nicelytools/perf/Documentation/perf-script.txt tools/perf/builtin-script.c+40 -20 replies
2/3perf auxtrace: Add option to feed branches to the thread stacktools/perf/util/auxtrace.h tools/perf/util/intel-bts.c tools/perf/util/intel-pt.c+23 -60 replies
3/3perf script: Add callindent optiontools/perf/Documentation/perf-script.txt tools/perf/builtin-script.c tools/perf/util/thread-stack.c +1 more+79 -13 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndi Kleen
SeriesA-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 script: Add callindent option

Hi

Andi Kleen sent a couple of patches to add a callindent option to perf script. Andi was agreeable to this alternative implementation.

While there are some differences in the resulting output, the main difference is:

1. Tell the decoder to feed branches to the thread stack, which has the advantage that it happens before branch filtering and so can be used with different itrace options (e.g. it still works when only showing calls, even though the thread stack needs to see calls and returns). Also it does not conflict with using the thread stack to get callchains.

Changes in V2:

Remove the prefix string
Add a patch to display the sample flags more nicely

Adrian Hunter (3):
perf script: Print sample flags more nicely
perf auxtrace: Add option to feed branches to the thread stack perf script: Add callindent option

 tools/perf/Documentation/perf-script.txt |  11 +++-
 tools/perf/builtin-script.c              | 103 ++++++++++++++++++++++++++++++-
 tools/perf/util/auxtrace.h               |   2 +
 tools/perf/util/intel-bts.c              |  22 +++++--
 tools/perf/util/intel-pt.c               |   5 +-
 tools/perf/util/thread-stack.c           |   7 +++
 tools/perf/util/thread-stack.h           |   1 +
 7 files changed, 142 insertions(+), 9 deletions(-)

Regards
Adrian