summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-25 23:20:01 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-26 20:49:30 +0200
commit45266bbeead70f2d4f02f5255ed4cb35fd74778a (patch)
treee1c895c183ae7414bf10821fbb3f79dfb049d22d /tools/perf/scripts/python
parent97c70711fc5b7446e66340dcf8b40dd31c27b5d3 (diff)
downloadlinux-next-45266bbeead70f2d4f02f5255ed4cb35fd74778a.tar.gz
linux-next-45266bbeead70f2d4f02f5255ed4cb35fd74778a.zip
perf python: Port compaction-times to perf module
Port compaction-times.py to a standalone script in tools/perf/python/ using the perf module directly to analyze mm_compaction tracepoints. Improvements compared to the legacy script: - Replace Python 2 constructs (such as sys.maxint and raw integer bitmasks) with Python 3 enum.IntEnum (Popt) and enum.IntFlag (Topt) types. - Access tracepoint fields directly on perf.sample_event and add -i/--input CLI option support via argparse. - Add full type annotations passing mypy and pylint without suppression comments. Add a shell test (test_compaction_times_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