Skip to content

perf dlfilter: Add dlfilter-show-cycles

Adrian Hunter lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyIn review
  2. v26 patches 2 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6perf auxtrace: Add missing Z option to ITRACE_HELPtools/perf/util/auxtrace.h+1 -00 replies
2/6perf auxtrace: Add itrace A option to approximate IPCtools/perf/Documentation/itrace.txt tools/perf/util/auxtrace.c tools/perf/util/auxtrace.h+7 -00 replies
3/6perf intel-pt: Support itrace A option to approximate IPCtools/perf/Documentation/perf-intel-pt.txt tools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h +1 more+24 -40 replies
4/6perf dlfilter: Add dlfilter-show-cyclestools/perf/Documentation/perf-intel-pt.txt tools/perf/Makefile.perf tools/perf/dlfilters/dlfilter-show-cycles.c+163 -20 replies
5/6perf auxtrace: Add itrace d+o option to direct debug log to stdouttools/perf/Documentation/itrace.txt tools/perf/util/auxtrace.h+3 -00 replies
6/6perf intel-pt: Support itrace d+o option to direct debug log to stdouttools/perf/Documentation/perf-intel-pt.txt tools/perf/util/intel-pt-decoder/intel-pt-log.c tools/perf/util/intel-pt.c+8 -60 replies

Reviews trailers per patch

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

PatchAndi Kleen
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-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/6] perf dlfilter: Add dlfilter-show-cycles

Hi

The issue with V1 was that the IPC information used to accumulate cycle counts has a lower granularity because it is output only when the cycle count correlates to the IP of the event i.e. only when the IPC is exactly correct.

To enable more frequent updates to the cycle count, itrace option 'A' is added, which specifies that IPC information can be approximate.

In addition there are some new miscellaneous patches.

Changes in V3:

perf intel-pt: Support itrace A option to approximate IPC
Expanded explanation of the loss of accuracy of IPC with 'A' option.

Added Reviewed-by: Andi Kleen <[email protected]>

Changes in V2:

perf dlfilter: Add dlfilter-show-cycles
Separate counts for branches, instructions or other events.

New patches:
perf auxtrace: Add missing Z option to ITRACE_HELP
perf auxtrace: Add itrace A option to approximate IPC
perf intel-pt: Support itrace A option to approximate IPC perf auxtrace: Add itrace d+o option to direct debug log to stdout perf intel-pt: Support itrace d+o option to direct debug log to stdout

Adrian Hunter (6):
perf auxtrace: Add missing Z option to ITRACE_HELP
perf auxtrace: Add itrace A option to approximate IPC
perf intel-pt: Support itrace A option to approximate IPC perf dlfilter: Add dlfilter-show-cycles
perf auxtrace: Add itrace d+o option to direct debug log to stdout perf intel-pt: Support itrace d+o option to direct debug log to stdout

 tools/perf/Documentation/itrace.txt                |   2 +
 tools/perf/Documentation/perf-intel-pt.txt         |  28 ++++
 tools/perf/Makefile.perf                           |   2 +-
 tools/perf/dlfilters/dlfilter-show-cycles.c        | 144 +++++++++++++++++++++
 tools/perf/util/auxtrace.c                         |   3 +
 tools/perf/util/auxtrace.h                         |   6 +
 .../perf/util/intel-pt-decoder/intel-pt-decoder.c  |   1 +
 .../perf/util/intel-pt-decoder/intel-pt-decoder.h  |   1 +
 tools/perf/util/intel-pt-decoder/intel-pt-log.c    |   8 +-
 tools/perf/util/intel-pt.c                         |  21 ++-
 10 files changed, 205 insertions(+), 11 deletions(-)
 create mode 100644 tools/perf/dlfilters/dlfilter-show-cycles.c

Regards
Adrian