diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:19:48 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:29 +0200 |
| commit | eeb70645a8097437c06cebccda4115f366b928c3 (patch) | |
| tree | 1a3eede27eb30e2998cc4ce717fd0c6db6459638 /tools/perf/scripts/python | |
| parent | e1e4bd6f8b6bddeafd3d1b5d3f756981b4b3dde2 (diff) | |
| download | linux-next-eeb70645a8097437c06cebccda4115f366b928c3.tar.gz linux-next-eeb70645a8097437c06cebccda4115f366b928c3.zip | |
perf python: Port event_analyzing_sample to perf module
Port event_analyzing_sample.py to a standalone script in
tools/perf/python/ using the perf module and standard library sqlite3
module.
Improvements compared to the legacy script:
- Encapsulate database state in a _DB container instead of mutating
module-level globals, and ensure temporary SQLite database files are
cleaned up on exit.
- Add argparse CLI options (-i/--input and -d/--db) while preserving
PerfEvent, PebsEvent, and PebsNHM binary raw_buf unpacking and
symbol/DSO histogram reporting.
- Remove Python 2 compatibility code and add type annotations.
Add a shell test (test_event_analyzing_sample_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')
0 files changed, 0 insertions, 0 deletions
