diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:20:03 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:30 +0200 |
| commit | b08e799dee7356902db12d3d516125531ad5485d (patch) | |
| tree | 71c6d300bc366d952e865a6aa8d4b044c9db2af3 /tools/perf/scripts/python | |
| parent | c1864af54c89adb9f32737a07831398f5eea4981 (diff) | |
| download | linux-next-b08e799dee7356902db12d3d516125531ad5485d.tar.gz linux-next-b08e799dee7356902db12d3d516125531ad5485d.zip | |
perf python: Port netdev-times to perf module
Port netdev-times.py from tools/perf/scripts/python/ to a standalone
script in tools/perf/python/:
- Refactor the script into a NetDevTimesAnalyzer class with full type
annotations to encapsulate state.
- Collect events via perf.session and sort them in timestamp order
before analysis so multi-CPU TX and RX packet timelines are
reconstructed deterministically.
- Replace custom argument parsing with argparse (-i/--input, --tx,
--rx, --dev, --debug), extract tracepoint fields directly from sample
attributes, and remove Python 2 compatibility artifacts.
Add a shell test (test_netdev_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
