[PATCH 00/22] perf intel-pt: Add support for instructions-per-cycle (IPC)

From: Adrian Hunter
Date: Mon May 20 2019 - 07:40:04 EST


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