Skip to content

perf intel-pt: Add support for instructions-per-cycle (IPC)

Adrian Hunter lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22perf intel-pt: Fix itrace defaults for perf scripttools/perf/util/intel-pt.c+2 -15 replies
2/22perf auxtrace: Fix itrace defaults for perf scripttools/perf/util/auxtrace.c+2 -10 replies
3/22perf intel-pt: Fix itrace defaults for perf script intel-pt documentationtools/perf/Documentation/intel-pt.txt+5 -50 replies
4/22perf intel-pt: Factor out intel_pt_update_sample_timetools/perf/util/intel-pt-decoder/intel-pt-decoder.c+10 -80 replies
5/22perf intel-pt: Accumulate cycle count from CYC packetstools/perf/util/intel-pt-decoder/intel-pt-decoder.c tools/perf/util/intel-pt-decoder/intel-pt-decoder.h+14 -10 replies
6/22perf tools: Add IPC information to perf_sampletools/perf/util/event.h+2 -00 replies
7/22perf intel-pt: Add support for samples to contain IPC ratiotools/perf/util/intel-pt.c+29 -00 replies
8/22perf script: Add output of IPC ratiotools/perf/Documentation/perf-script.txt tools/perf/builtin-script.c+26 -20 replies
9/22perf intel-pt: Record when decoding PSB+ packetstools/perf/util/intel-pt-decoder/intel-pt-decoder.c+31 -100 replies
10/22perf intel-pt: Re-factor TIP cases in intel_pt_walk_to_iptools/perf/util/intel-pt-decoder/intel-pt-decoder.c+17 -60 replies
11/22perf intel-pt: Accumulate cycle count from TSC/TMA/MTC packetstools/perf/util/intel-pt-decoder/intel-pt-decoder.c+51 -00 replies
12/22perf intel-pt: Document IPC usagetools/perf/Documentation/intel-pt.txt+30 -00 replies
13/22perf thread-stack: Accumulate IPC informationtools/perf/util/thread-stack.c tools/perf/util/thread-stack.h+18 -00 replies
14/22perf db-export: Add brief documentationtools/perf/Documentation/db-export.txt+41 -00 replies
15/22perf db-export: Export IPC informationtools/perf/util/scripting-engines/trace-event-python.c+6 -20 replies
16/22perf scripts python: export-to-sqlite.py: Export IPC informationtools/perf/scripts/python/export-to-sqlite.py+24 -120 replies
17/22perf scripts python: export-to-postgresql.py: Export IPC informationtools/perf/scripts/python/export-to-postgresql.py+24 -120 replies
18/22perf scripts python: exported-sql-viewer.py: Add IPC information to the Branch reportstools/perf/scripts/python/exported-sql-viewer.py+83 -192 replies
19/22perf scripts python: exported-sql-viewer.py: Add CallGraphModelParamstools/perf/scripts/python/exported-sql-viewer.py+41 -320 replies
20/22perf scripts python: exported-sql-viewer.py: Add IPC information to Call Graph Graphtools/perf/scripts/python/exported-sql-viewer.py+56 -130 replies
21/22perf scripts python: exported-sql-viewer.py: Add IPC information to Call Treetools/perf/scripts/python/exported-sql-viewer.py+56 -130 replies
22/22perf scripts python: exported-sql-viewer.py: Select find text when find bar is activatedtools/perf/scripts/python/exported-sql-viewer.py+1 -00 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/22] perf intel-pt: Add support for instructions-per-cycle (IPC)

Hi

Here are some patches that add support for IPC. There are 3 dependent fixes to start with. Display of IPC by perf script is in patch 8 "perf script: Add output of IPC ratio". Information about Intel PT and IPC is in patch 12 "perf intel-pt: Document IPC usage". Then there are patches to export IPC including un-related patch 14 "perf db-export: Add brief documentation" and un-related patch 22 "perf scripts python: exported-sql-viewer.py: Select find text when find bar is activated"

Adrian Hunter (22):
perf intel-pt: Fix itrace defaults for perf script
perf auxtrace: Fix itrace defaults for perf script
perf intel-pt: Fix itrace defaults for perf script intel-pt documentation perf intel-pt: Factor out intel_pt_update_sample_time
perf intel-pt: Accumulate cycle count from CYC packets
perf tools: Add IPC information to perf_sample
perf intel-pt: Add support for samples to contain IPC ratio
perf script: Add output of IPC ratio
perf intel-pt: Record when decoding PSB+ packets
perf intel-pt: Re-factor TIP cases in intel_pt_walk_to_ip
perf intel-pt: Accumulate cycle count from TSC/TMA/MTC packets
perf intel-pt: Document IPC usage
perf thread-stack: Accumulate IPC information
perf db-export: Add brief documentation
perf db-export: Export IPC information
perf scripts python: export-to-sqlite.py: Export IPC information
perf scripts python: export-to-postgresql.py: Export IPC information
perf scripts python: exported-sql-viewer.py: Add IPC information to the Branch reports perf scripts python: exported-sql-viewer.py: Add CallGraphModelParams perf scripts python: exported-sql-viewer.py: Add IPC information to Call Graph Graph perf scripts python: exported-sql-viewer.py: Add IPC information to Call Tree perf scripts python: exported-sql-viewer.py: Select find text when find bar is activated

 tools/perf/Documentation/db-export.txt             |  41 +++
 tools/perf/Documentation/intel-pt.txt              |  40 ++-
 tools/perf/Documentation/perf-script.txt           |   5 +-
 tools/perf/builtin-script.c                        |  23 +-
 tools/perf/scripts/python/export-to-postgresql.py  |  36 ++-
 tools/perf/scripts/python/export-to-sqlite.py      |  36 ++-
 tools/perf/scripts/python/exported-sql-viewer.py   | 294 ++++++++++++++++-----
 tools/perf/util/auxtrace.c                         |   3 +-
 tools/perf/util/event.h                            |   2 +
 .../perf/util/intel-pt-decoder/intel-pt-decoder.c  | 141 ++++++++--
 .../perf/util/intel-pt-decoder/intel-pt-decoder.h  |   1 +
 tools/perf/util/intel-pt.c                         |  32 ++-
 .../util/scripting-engines/trace-event-python.c    |   8 +-
 tools/perf/util/thread-stack.c                     |  14 +
 tools/perf/util/thread-stack.h                     |   4 +
 15 files changed, 556 insertions(+), 124 deletions(-)
 create mode 100644 tools/perf/Documentation/db-export.txt

Regards
Adrian