Skip to content

perf intel-pt: Support itrace option flag d+e to log on error

Adrian Hunter lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v15 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6perf tools: Add perf_config_scan()tools/perf/util/config.c tools/perf/util/config.h+32 -00 replies
2/6perf auxtrace: Add itrace option flag d+e to log on errortools/perf/Documentation/itrace.txt tools/perf/Documentation/perf-config.txt tools/perf/util/auxtrace.c +1 more+24 -00 replies
3/6perf intel-pt: Improve man page layout slightlytools/perf/Documentation/perf-intel-pt.txt+8 -00 replies
4/6perf intel-pt: Improve object code read error messagetools/perf/util/intel-pt.c+2 -10 replies
5/6perf intel-pt: Support itrace option flag d+e to log on errortools/perf/Documentation/perf-intel-pt.txt tools/perf/util/intel-pt-decoder/intel-pt-log.c tools/perf/util/intel-pt-decoder/intel-pt-log.h +1 more+117 -50 replies
6/6perf intel-pt: Remove first line of log dumped on errortools/perf/util/intel-pt-decoder/intel-pt-log.c+28 -50 replies

Reviews trailers per patch

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

PatchAndi KleenNamhyung Kim
SeriesR-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6

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/6] perf intel-pt: Support itrace option flag d+e to log on error

Hi

Here are a few patches to add the ability to output the decoding debug log only when there are decoding errors.

This is motivated by the fact that a full log can be very large, so just getting interesting bits is useful for analyzing errors.

If necessary, the size of output on error is configurable via perf config, and perf_config_scan() was added in the 1st patch to make that simpler.

The 2nd patch adds the new option flag to auxtrace.

There are a couple of very minor and essentially unrelated changes in patches 3 and 4.

The main Intel PT change is in patch 5 and there is a small example in the commit message.

Changes in V2:

perf intel-pt: Support itrace option flag d+e to log on error
Ensure log_buf is defined before use

perf intel-pt: Remove first line of log dumped on error
Remove first line only if the buffer has wrapped

Adrian Hunter (6):
perf tools: Add perf_config_scan()
perf auxtrace: Add itrace option flag d+e to log on error perf intel-pt: Improve man page layout slightly perf intel-pt: Improve object code read error message perf intel-pt: Support itrace option flag d+e to log on error perf intel-pt: Remove first line of log dumped on error

 tools/perf/Documentation/itrace.txt             |   1 +
 tools/perf/Documentation/perf-config.txt        |   7 ++
 tools/perf/Documentation/perf-intel-pt.txt      |  13 ++-
 tools/perf/util/auxtrace.c                      |  13 +++
 tools/perf/util/auxtrace.h                      |   3 +
 tools/perf/util/config.c                        |  31 +++++++
 tools/perf/util/config.h                        |   1 +
 tools/perf/util/intel-pt-decoder/intel-pt-log.c | 117 +++++++++++++++++++++++-
 tools/perf/util/intel-pt-decoder/intel-pt-log.h |   3 +-
 tools/perf/util/intel-pt.c                      |  23 ++++-
 10 files changed, 206 insertions(+), 6 deletions(-)

Regards
Adrian