summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-25 23:19:48 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-26 20:49:29 +0200
commiteeb70645a8097437c06cebccda4115f366b928c3 (patch)
tree1a3eede27eb30e2998cc4ce717fd0c6db6459638 /tools/perf/scripts
parente1e4bd6f8b6bddeafd3d1b5d3f756981b4b3dde2 (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions