diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:19:35 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:27 +0200 |
| commit | 7a481f6c712a1505f67b97add508bb9d393c9d22 (patch) | |
| tree | e1cbee16020345f95d14ede4f727d656edb67ba6 /tools/perf/python/stackcollapse.py | |
| parent | 4b15226c14df50c8c9ca67e35295bf8c7ae71574 (diff) | |
| download | linux-next-7a481f6c712a1505f67b97add508bb9d393c9d22.tar.gz linux-next-7a481f6c712a1505f67b97add508bb9d393c9d22.zip | |
perf python: Expose addr location, transaction, and context_switch
Expose destination address location components (addr_dso, addr_symbol,
addr_sym_offset), branch/transaction metrics (branch_type, in_tx,
flags, transaction), machine_pid, vcpu, sym_offset, and context_switch
callbacks directly to the Python extension.
Also include supporting fixes and infrastructure updates in
util/python.c and perf.pyi:
- Support fetching sym_offset on resolved sample symbols.
- Populate sample machine_pid and vcpu from evlist__id2sid() when
perf_guest is enabled, and resolve samples against the matching guest
or host machine.
- Expose next_prev_pid and next_prev_tid on switch_event only for
PERF_RECORD_SWITCH_CPU_WIDE records (returning None otherwise).
- Wire up tracing_data in pyrf_session__new() and update perf.pyi type
stubs (including srccode() and insn() return types).
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/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
