Skip to content

perf intel-pt: Add support for efficient time interval filtering

Adrian Hunter lkml 1 version Applied

Status from this message: Thanks, applied!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/19perf auxtrace: Add perf time interval to itrace_synth_opstools/perf/util/auxtrace.h+34 -00 replies
2/19perf script: Set perf time interval in itrace_synth_opstools/perf/builtin-script.c+7 -10 replies
3/19perf report: Set perf time interval in itrace_synth_opstools/perf/builtin-report.c+7 -10 replies
4/19perf intel-pt: Add lookahead callbacktools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h+5 -00 replies
5/19perf intel-pt: Factor out intel_pt_8b_tsc()tools/perf/util/intel-pt-decoder/intel-pt-decoder.c+17 -90 replies
6/19perf intel-pt: Factor out intel_pt_reposition()tools/perf/util/intel-pt-decoder/intel-pt-decoder.c+9 -40 replies
7/19perf intel-pt: Add reposition parameter to intel_pt_get_data()tools/perf/util/intel-pt-decoder/intel-pt-decoder.c+9 -80 replies
8/19perf intel-pt: Add intel_pt_fast_forward()tools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h+132 -00 replies
9/19perf intel-pt: Factor out intel_pt_get_buffer()tools/perf/util/intel-pt.c+37 -230 replies
10/19perf intel-pt: Add support for lookaheadtools/perf/util/intel-pt.c+58 -10 replies
11/19perf intel-pt: Add support for efficient time interval filteringtools/perf/util/intel-pt.c+208 -00 replies
12/19perf time-utils: Treat time ranges consistentlytools/perf/util/time-utils.c+3 -40 replies
13/19perf time-utils: Factor out set_percent_time()tools/perf/util/time-utils.c+18 -210 replies
14/19perf time-utils: Prevent percentage time range overlaptools/perf/util/time-utils.c+3 -00 replies
15/19perf time-utils: Fix --time documentationtools/perf/Documentation/perf-diff.txt tools/perf/Documentation/perf-report.txt tools/perf/Documentation/perf-script.txt+9 -90 replies
16/19perf time-utils: Simplify perf_time__parse_for_ranges() error paths slightlytools/perf/util/time-utils.c+5 -70 replies
17/19perf time-utils: Make perf_time__parse_for_ranges() more logicaltools/perf/util/time-utils.c+4 -10 replies
18/19perf tests: Add a test for time-utilstools/perf/tests/Build tools/perf/tests/builtin-test.c tools/perf/tests/tests.h +1 more+240 -00 replies
19/19perf time-utils: Add support for multiple explicit time intervalstools/perf/Documentation/perf-diff.txt tools/perf/Documentation/perf-report.txt tools/perf/Documentation/perf-script.txt +2 more+94 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/19] perf intel-pt: Add support for efficient time interval filtering

Hi

Here are some patches to add support for efficient time interval filtering. First there are 3 patches to add perf time interval to the itrace options structure. Then changes to Intel PT to support "fast forwarding" to a particular timestamp. The filtering is added in patch "perf intel-pt: Add support for efficient time interval filtering". After that there are patches to time-utils, leading up to adding a new test and adding support multiple explicit time intervals.

The Intel PT changes make time filtering much faster because decoding is limited to the minimal time ranges needed to support the time intervals.

Adrian Hunter (19):
perf auxtrace: Add perf time interval to itrace_synth_ops
perf script: Set perf time interval in itrace_synth_ops
perf report: Set perf time interval in itrace_synth_ops
perf intel-pt: Add lookahead callback
perf intel-pt: Factor out intel_pt_8b_tsc()
perf intel-pt: Factor out intel_pt_reposition()
perf intel-pt: Add reposition parameter to intel_pt_get_data() perf intel-pt: Add intel_pt_fast_forward()
perf intel-pt: Factor out intel_pt_get_buffer()
perf intel-pt: Add support for lookahead
perf intel-pt: Add support for efficient time interval filtering perf time-utils: Treat time ranges consistently
perf time-utils: Factor out set_percent_time()
perf time-utils: Prevent percentage time range overlap
perf time-utils: Fix --time documentation
perf time-utils: Simplify perf_time__parse_for_ranges() error paths slightly perf time-utils: Make perf_time__parse_for_ranges() more logical perf tests: Add a test for time-utils
perf time-utils: Add support for multiple explicit time intervals

 tools/perf/Documentation/perf-diff.txt             |  14 +-
 tools/perf/Documentation/perf-report.txt           |   9 +-
 tools/perf/Documentation/perf-script.txt           |   9 +-
 tools/perf/builtin-report.c                        |   8 +-
 tools/perf/builtin-script.c                        |   8 +-
 tools/perf/tests/Build                             |   1 +
 tools/perf/tests/builtin-test.c                    |   4 +
 tools/perf/tests/tests.h                           |   1 +
 tools/perf/tests/time-utils-test.c                 | 251 ++++++++++++++++
 tools/perf/util/auxtrace.h                         |  34 +++
 .../perf/util/intel-pt-decoder/intel-pt-decoder.c  | 188 ++++++++++--
 .../perf/util/intel-pt-decoder/intel-pt-decoder.h  |   5 +
 tools/perf/util/intel-pt.c                         | 325 +++++++++++++++++++--
 tools/perf/util/time-utils.c                       | 132 ++++++---
 14 files changed, 894 insertions(+), 95 deletions(-)
 create mode 100644 tools/perf/tests/time-utils-test.c

Regards
Adrian