diff options
| author | 2026-09-28 23:58:35 -0700 | |
|---|---|---|
| committer | 2026-09-29 20:52:22 +0200 | |
| commit | 959c63291e52beaebd3307be7de32dc012c85e97 (patch) | |
| tree | 9f39710704d3e94738e28f683dc1bb975189de5b /tools/perf/tests/shell/test_stackcollapse_python.sh | |
| parent | perf test: Deflake Intel PT Python shell tests under load (diff) | |
perf test: Deflake failed-syscalls Python shell tests under load
When running 'perf test' in parallel under heavy system load, a one-shot
'perf record -e ... -- ls /does_not_exist' without '-B -N --no-bpf-event'
can exit in under 300 microseconds before 'ls's PERF_RECORD_COMM and
ENOENT sys_exit events are captured, while also contending on ~/.debug
build-id caching and BPF event synthesis.
Pass '-B -N --no-bpf-event' to 'perf record', sleep 0.05s in a subshell
after 'ls' so its events are flushed before the parent subshell exits,
and wrap the record and check steps in a bounded retry loop (up to 5
attempts).
Fixes: b76c43d09b06da1b ("perf python: Port failed-syscalls-by-pid to perf module")
Fixes: 4e3fe6987cbad8ab ("perf python: Port failed-syscalls from Perl to perf module")
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/tests/shell/test_stackcollapse_python.sh')
0 files changed, 0 insertions, 0 deletions
