Skip to content

perf intel-pt: Add more support for VMs

Adrian Hunter lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 2 repliesApplied
  2. v112 patches 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/12perf auxtrace: Add Z itrace option for timeless decodingtools/perf/Documentation/itrace.txt tools/perf/util/auxtrace.c tools/perf/util/auxtrace.h+6 -00 replies
2/12perf intel-pt: Move synth_opts initialization earliertools/perf/util/intel-pt.c+14 -150 replies
3/12perf intel-pt: Support Z itrace option for timeless decodingtools/perf/Documentation/perf-intel-pt.txt tools/perf/util/intel-pt.c+6 -10 replies
4/12perf inject: Add facility to do in place updatetools/perf/builtin-inject.c tools/perf/util/data.c tools/perf/util/data.h +2 more+35 -60 replies
5/12perf inject: Add --vm-time-correlation optiontools/perf/Documentation/perf-inject.txt tools/perf/builtin-inject.c tools/perf/util/auxtrace.h+60 -00 replies
6/12perf auxtrace: Allow buffers to be mapped read / writetools/perf/util/auxtrace.c tools/perf/util/auxtrace.h+8 -30 replies
7/12perf intel-pt: Let overlap detection handle VM timestampstools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h tools/perf/util/intel-pt.c+19 -60 replies
8/12perf intel-pt: Add a tree for VMCS informationtools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h tools/perf/util/intel-pt.c+79 -00 replies
9/12perf intel-pt: Pass the first timestamp to the decodertools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h tools/perf/util/intel-pt.c+31 -00 replies
10/12perf intel-pt: Better 7-byte timestamp wraparound logictools/perf/util/intel-pt-decoder/intel-pt-decoder.c+9 -30 replies
11/12perf intel-pt: Add VM Time Correlation to decodertools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h tools/perf/util/intel-pt-decoder/intel-pt-log.h+696 -00 replies
12/12perf intel-pt: Parse VM Time Correlation options and set up decodingtools/perf/Documentation/perf-intel-pt.txt tools/perf/util/intel-pt.c+202 -40 replies

Reviews trailers per patch

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

PatchAndi Kleen
SeriesR-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

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 00/12] perf intel-pt: Add more support for VMs

Hi

Here is V2, see changes list below.

Previously, limited support was added for timeless decoding of VM traces.

Primarily, these patches add support for decoding traces of virtual machines using timestamps, assuming the VMX TSC Offset is unchanging during perf record, and VMX TSC Scaling is not used.

The first 3 patches add an itrace option to allow timeless decoding even if timestamps have been recorded.

The next 2 patches add an option to perf inject to do "VM Time Correlation" i.e. sort out the timestamps.

There are 5 preparation patches, then the main changes in patch "perf intel-pt: Add VM Time Correlation to decoder".

The final patch adds documentation which provides an example.

Changes in V2:

perf inject: Add facility to do in place update
Error out instead of prompt to continue

perf inject: Add --vm-time-correlation option
Tighten up parsing of "dry-run"

perf intel-pt: Add a tree for VMCS information
Rename lookup_vmcs to findnew_vmcs

perf intel-pt: Add VM Time Correlation to decoder
Rename lookup_vmcs to findnew_vmcs

perf intel-pt: Parse VM Time Correlation options and set up decoding
Rename lookup_vmcs to findnew_vmcs
Explain "dry-run" option
Adjust example for 'perf inject' changes

Adrian Hunter (12):
perf auxtrace: Add Z itrace option for timeless decoding perf intel-pt: Move synth_opts initialization earlier perf intel-pt: Support Z itrace option for timeless decoding perf inject: Add facility to do in place update
perf inject: Add --vm-time-correlation option
perf auxtrace: Allow buffers to be mapped read / write perf intel-pt: Let overlap detection handle VM timestamps perf intel-pt: Add a tree for VMCS information
perf intel-pt: Pass the first timestamp to the decoder perf intel-pt: Better 7-byte timestamp wraparound logic perf intel-pt: Add VM Time Correlation to decoder
perf intel-pt: Parse VM Time Correlation options and set up decoding

 tools/perf/Documentation/itrace.txt                |   1 +
 tools/perf/Documentation/perf-inject.txt           |  10 +
 tools/perf/Documentation/perf-intel-pt.txt         | 114 +++-
 tools/perf/builtin-inject.c                        |  73 ++-
 tools/perf/util/auxtrace.c                         |   8 +-
 tools/perf/util/auxtrace.h                         |  14 +-
 tools/perf/util/data.c                             |   3 +-
 tools/perf/util/data.h                             |   1 +
 tools/perf/util/header.c                           |   5 +
 .../perf/util/intel-pt-decoder/intel-pt-decoder.c  | 723 ++++++++++++++++++++-
 .../perf/util/intel-pt-decoder/intel-pt-decoder.h  |  20 +-
 tools/perf/util/intel-pt-decoder/intel-pt-log.h    |   5 +
 tools/perf/util/intel-pt.c                         | 224 ++++++-
 tools/perf/util/session.c                          |   6 +-
 14 files changed, 1169 insertions(+), 38 deletions(-)

Regards
Adrian