Skip to content

perf tools: minor improvements to Intel PT related stuff

Adrian Hunter lkml 1 version Applied

Status from this message: Thanks, applied all but:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/25perf auxtrace: Fix 'instructions' period of zerotools/perf/util/auxtrace.c tools/perf/util/intel-pt.c+4 -22 replies
2/25perf report: Fix sample type validation for synthesized callchainstools/perf/builtin-report.c+6 -00 replies
3/25perf intel-pt: Fix potential loop forevertools/perf/util/intel-pt-decoder/intel-pt-decoder.c+2 -20 replies
4/25perf intel-pt: Make logging slightly more efficienttools/perf/util/intel-pt-decoder/intel-pt-log.c tools/perf/util/intel-pt-decoder/intel-pt-log.h+43 -160 replies
5/25perf script: Allow time to be displayed in nanosecondstools/perf/Documentation/perf-script.txt tools/perf/builtin-script.c+10 -10 replies
6/25perf tools: Warn when AUX data has been losttools/perf/util/event.h tools/perf/util/session.c+11 -00 replies
7/25perf tools: Add more documentation to export-to-postgresql.py scripttools/perf/scripts/python/export-to-postgresql.py+221 -00 replies
8/25perf auxtrace: Add option to synthesize branch stacks on samplestools/perf/Documentation/itrace.txt tools/perf/util/auxtrace.c tools/perf/util/auxtrace.h+28 -00 replies
9/25perf report: Adjust sample type validation for synthesized branch stackstools/perf/builtin-report.c+3 -00 replies
10/25perf report: Also do default setup for synthesized branch stackstools/perf/builtin-report.c+3 -00 replies
11/25perf report: Skip events with null branch stackstools/perf/builtin-report.c+11 -40 replies
12/25perf inject: Set branch stack feature flag when synthesizing branch stackstools/perf/builtin-inject.c+5 -10 replies
13/25perf intel-pt: Move branch filter logictools/perf/util/intel-pt.c+3 -30 replies
14/25perf intel-pt: Support generating branch stacktools/perf/Documentation/intel-pt.txt tools/perf/util/intel-pt.c+125 -00 replies
15/25perf report: Make max_stack value allow for synthesized callchainstools/perf/builtin-report.c+4 -05 replies
16/25perf hists: Allow for max_stack greater than PERF_MAX_STACK_DEPTHtools/perf/util/hist.c tools/perf/util/hist.h+5 -20 replies
17/25perf callchain: Allow for max_stack greater than PERF_MAX_STACK_DEPTHtools/perf/util/machine.c+1 -13 replies
18/25perf script: Add a setting for maximum stack depthtools/perf/builtin-script.c tools/perf/util/session.c+5 -30 replies
19/25perf scripting python: Allow for max_stack greater than PERF_MAX_STACK_DEPTHtools/perf/builtin-script.c tools/perf/util/scripting-engines/trace-event-python.c tools/perf/util/trace-event.h+4 -20 replies
20/25perf script: Make scripting_max_stack value allow for synthesized callchainstools/perf/builtin-script.c+4 -00 replies
21/25perf tools: Add perf_evlist__id2evsel_strict()tools/perf/util/evlist.c tools/perf/util/evlist.h+17 -00 replies
22/25perf tools: Add perf_evlist__del()tools/perf/util/evlist.c tools/perf/util/evlist.h+9 -02 replies
23/25perf inject: Remove more aux-related stuff when processing instruction tracestools/perf/builtin-inject.c+27 -10 replies
24/25perf inject: Add --strip option to strip out non-synthesized eventstools/perf/Documentation/perf-inject.txt tools/perf/builtin-inject.c+94 -00 replies
25/25perf intel-pt: Add mispred-all config option to aid use with autofdotools/perf/Documentation/intel-pt.txt tools/perf/util/intel-pt.c+43 -00 replies

Reviews trailers per patch

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

PatchAndi Kleen
1/25
2/25
3/25
4/25
5/25
6/25
7/25
8/25Based-on-patch-by
9/25
10/25
11/25
12/25
13/25
14/25Based-on-patch-by
15/25
16/25
17/25
18/25
19/25
20/25
21/25
22/25
23/25
24/25
25/25

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

Read the v1 thread

Cover letter [PATCH 00/25] perf tools: minor improvements to Intel PT related stuff

Hi

Here are some minor improvements to Intel PT related stuff.

First 3 patches are minor fixes:

perf auxtrace: Fix 'instructions' period of zero
perf report: Fix sample type validation for synthesized callchains perf intel-pt: Fix potential loop forever

Next 4 are minor improvements:

perf intel-pt: Make logging slightly more efficient
perf script: Allow time to be displayed in nanoseconds perf tools: Warn when AUX data has been lost
perf tools: Add more documentation to export-to-postgresql.py script

Next 7 add support for branch stacks:

perf auxtrace: Add option to synthesize branch stacks on samples perf report: Adjust sample type validation for synthesized branch stacks perf report: Also do default setup for synthesized branch stacks perf report: Skip events with null branch stacks
perf inject: Set branch stack feature flag when synthesizing branch stacks perf intel-pt: Move branch filter logic
perf intel-pt: Support generating branch stack

Next 6 allow for arbitrary-sized call stacks:

perf report: Make max_stack value allow for synthesized callchains perf hists: Allow for max_stack greater than PERF_MAX_STACK_DEPTH perf callchain: Allow for max_stack greater than PERF_MAX_STACK_DEPTH perf script: Add a setting for maximum stack depth
perf scripting python: Allow for max_stack greater than PERF_MAX_STACK_DEPTH perf script: Make scripting_max_stack value allow for synthesized callchains

Final 5 let Intel PT be used with autofdo:

perf tools: Add perf_evlist__id2evsel_strict()
perf tools: Add perf_evlist__del()
perf inject: Remove more aux-related stuff when processing instruction traces perf inject: Add --strip option to strip out non-synthesized events perf intel-pt: Add mispred-all config option to aid use with autofdo

Adrian Hunter (25):
perf auxtrace: Fix 'instructions' period of zero
perf report: Fix sample type validation for synthesized callchains perf intel-pt: Fix potential loop forever
perf intel-pt: Make logging slightly more efficient
perf script: Allow time to be displayed in nanoseconds
perf tools: Warn when AUX data has been lost
perf tools: Add more documentation to export-to-postgresql.py script perf auxtrace: Add option to synthesize branch stacks on samples perf report: Adjust sample type validation for synthesized branch stacks perf report: Also do default setup for synthesized branch stacks perf report: Skip events with null branch stacks
perf inject: Set branch stack feature flag when synthesizing branch stacks perf intel-pt: Move branch filter logic
perf intel-pt: Support generating branch stack
perf report: Make max_stack value allow for synthesized callchains perf hists: Allow for max_stack greater than PERF_MAX_STACK_DEPTH perf callchain: Allow for max_stack greater than PERF_MAX_STACK_DEPTH perf script: Add a setting for maximum stack depth
perf scripting python: Allow for max_stack greater than PERF_MAX_STACK_DEPTH perf script: Make scripting_max_stack value allow for synthesized callchains perf tools: Add perf_evlist__id2evsel_strict()
perf tools: Add perf_evlist__del()
perf inject: Remove more aux-related stuff when processing instruction traces perf inject: Add --strip option to strip out non-synthesized events perf intel-pt: Add mispred-all config option to aid use with autofdo

 tools/perf/Documentation/intel-pt.txt              |  39 ++++
 tools/perf/Documentation/itrace.txt                |   4 +
 tools/perf/Documentation/perf-inject.txt           |   3 +
 tools/perf/Documentation/perf-script.txt           |   3 +
 tools/perf/builtin-inject.c                        | 125 +++++++++++-
 tools/perf/builtin-report.c                        |  31 ++-
 tools/perf/builtin-script.c                        |  18 +-
 tools/perf/scripts/python/export-to-postgresql.py  | 221 +++++++++++++++++++++
 tools/perf/util/auxtrace.c                         |  24 ++-
 tools/perf/util/auxtrace.h                         |   4 +
 tools/perf/util/event.h                            |   1 +
 tools/perf/util/evlist.c                           |  23 +++
 tools/perf/util/evlist.h                           |   3 +
 tools/perf/util/hist.c                             |   6 +-
 tools/perf/util/hist.h                             |   1 +
 .../perf/util/intel-pt-decoder/intel-pt-decoder.c  |   4 +-
 tools/perf/util/intel-pt-decoder/intel-pt-log.c    |  21 +-
 tools/perf/util/intel-pt-decoder/intel-pt-log.h    |  38 +++-
 tools/perf/util/intel-pt.c                         | 135 ++++++++++++-
 tools/perf/util/machine.c                          |   2 +-
 .../util/scripting-engines/trace-event-python.c    |   2 +-
 tools/perf/util/session.c                          |  12 +-
 tools/perf/util/trace-event.h                      |   2 +
 23 files changed, 686 insertions(+), 36 deletions(-)

Regards
Adrian