diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:19:51 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:29 +0200 |
| commit | b76c43d09b06da1bd8ff5be1ecfb532f6bf0a444 (patch) | |
| tree | f7e3429b5fcd38cee0c903f3f98626533b26d59c /tools/perf/scripts/python | |
| parent | 712af96a53eddfba4ec93bd59e69a4b5a4815890 (diff) | |
| download | linux-next-b76c43d09b06da1bd8ff5be1ecfb532f6bf0a444.tar.gz linux-next-b76c43d09b06da1bd8ff5be1ecfb532f6bf0a444.zip | |
perf python: Port failed-syscalls-by-pid to perf module
Port failed-syscalls-by-pid.py to a standalone script in
tools/perf/python/ using the perf module:
- Resolve architecture-aware syscall names using
perf.syscall_name(id, session.e_machine) instead of host python-audit
tables, supporting cross-architecture perf.data files without external
dependencies.
- Translate negative syscall return values into symbolic E* error names
using perf.arch_strerrno(ret, session.e_machine), leveraging the
auto-generated trace beauty architecture errno tables.
- Encapsulate aggregation in a SyscallAnalyzer class using
collections.defaultdict and add argparse filtering by comm, PID, and
-i/--input.
Add a shell test (test_failed_syscalls_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
