diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:20:04 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:30 +0200 |
| commit | 8c302c91402a3f543e661ace28bacf49f803b88b (patch) | |
| tree | 4fe80ea9e9a21d110f0f9d2ea67e48079ae6668a /tools/perf/scripts/python/stackcollapse.py | |
| parent | b08e799dee7356902db12d3d516125531ad5485d (diff) | |
| download | linux-next-8c302c91402a3f543e661ace28bacf49f803b88b.tar.gz linux-next-8c302c91402a3f543e661ace28bacf49f803b88b.zip | |
perf python: Port check-perf-trace to perf module
Port check-perf-trace.py to a standalone script in tools/perf/python/
using the perf module directly.
Improvements compared to the legacy script:
- Access tracepoint fields directly as attributes on perf.sample_event
instead of per-event dictionaries and legacy Perf-Trace-Util helpers.
- Decode symbolic flag and enum masks for irq:softirq_entry and
kmem:kmalloc directly in Python and add -i/--input CLI support via
argparse.
- Add full type annotations and clean up Python 2 idioms.
Add a shell test (test_check_perf_trace_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
