diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:19:55 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:29 +0200 |
| commit | d935308817b348443acad0a7dbb82689f0e48475 (patch) | |
| tree | a5a473684c79c7254a051f82ea42ced2cea90fde /tools/perf/scripts/python | |
| parent | 47b00c38780d27bedb91b8090f74e0523ccbc95e (diff) | |
| download | linux-next-d935308817b348443acad0a7dbb82689f0e48475.tar.gz linux-next-d935308817b348443acad0a7dbb82689f0e48475.zip | |
perf python: Port rw-by-pid from Perl to perf module
Replace the legacy Perl script rw-by-pid.pl with a standalone Python
script in tools/perf/python/rw-by-pid.py using the perf Python module.
Improvements compared to the legacy Perl script:
- Remove the dependency on libperl and Perf::Trace::Util.
- Convert unsigned 32-bit and 64-bit error return values
(0xfffff000..0xffffffff and >= 0x8000000000000000) to negative errnos
so failed read/write syscalls are recorded in the error table rather
than inflating bytes_read / bytes_written.
- Add argparse CLI support (-i/--input) and full type annotations.
Add a shell test
(test_rw_by_pid_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
