mirror of
https://github.com/torvalds/linux.git
synced 2026-11-10 17:11:02 +01:00
Replace the legacy Perl script rwtop.pl with a standalone Python script in tools/perf/python/rwtop.py using the perf Python module. Improvements compared to the legacy Perl script: - Remove the dependency on libperl and Perf::Trace::Util. - Support both offline perf.data files (via perf.session) and live recording (via LiveSession with --live), driving periodic interval summaries from event timestamps rather than wall-clock SIGALRM timers so both live and offline runs produce deterministic output. - 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. - Sanitize non-printable characters in /proc/<pid>/comm to prevent terminal control sequence injection. Add a shell test (test_rwtop_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> |
||
|---|---|---|
| .. | ||
| counting.py | ||
| event_analyzing_sample.py | ||
| failed-syscalls-by-pid.py | ||
| failed-syscalls.py | ||
| flamegraph.py | ||
| gecko.py | ||
| ilist.py | ||
| mem-phys-addr.py | ||
| perf_live.py | ||
| perf.pyi | ||
| rw-by-file.py | ||
| rw-by-pid.py | ||
| rwtop.py | ||
| sctop.py | ||
| stackcollapse.py | ||
| stat-cpi.py | ||
| syscall-counts-by-pid.py | ||
| syscall-counts.py | ||
| tracepoint.py | ||
| treport.py | ||
| twatch.py | ||