diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:20:07 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:30 +0200 |
| commit | d4ce72e9e238fd703306b66a33eb41391e6e5a5a (patch) | |
| tree | 6befbc09491cf2c643e8b7ab9b03864091bb9a65 /tools/perf/scripts/python/stackcollapse.py | |
| parent | d5934ca319a08e41498e47210285b73970cf074a (diff) | |
| download | linux-next-d4ce72e9e238fd703306b66a33eb41391e6e5a5a.tar.gz linux-next-d4ce72e9e238fd703306b66a33eb41391e6e5a5a.zip | |
perf python: Port intel-pt-events and libxed to perf module
Port intel-pt-events.py and libxed.py from tools/perf/scripts/python/
to standalone modules in tools/perf/python/:
- Refactor intel-pt-events.py into an IntelPTAnalyzer class with full
type annotations to encapsulate trace state and stashed output.
- Configure instruction trace decoding directly via perf.session's
itrace option and context_switch callback.
- Dynamically select 32-bit vs 64-bit disassembly mode in libxed.py
using session.is_64_bit and annotate instructions with source lines
via sample.srccode().
- Rename methods in libxed.py to snake_case (instruction, set_mode,
disassemble_one) and remove Python 2 compatibility code.
Add a shell test (test_intel_pt_events_python.sh) to verify the
standalone script.
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
