diff options
| author | 2026-09-28 23:58:32 -0700 | |
|---|---|---|
| committer | 2026-09-29 20:51:06 +0200 | |
| commit | ac6e4e290bd8a0ae9c12c148b62f2be4b5d7a422 (patch) | |
| tree | 112b8cd3a0c4cb3e89bb05914d7f2c2acfde1ae9 /scripts/Makefile.thinlto | |
| parent | perf evsel: Clamp sample_id size for ksymbol, bpf, and text_poke events (diff) | |
perf python sctop: Fix offline interval printing and test flakiness
In sctop.py:
- If an earlier interval elapsed and printed an empty table before the
target comm ('sleep') executed any syscalls, analyzer.printed became
True and the final partial interval containing the target comm's
syscalls was never flushed at EOF. Flush print_current_totals() in
finally when analyzer.syscalls is non-empty as well as when nothing
has been printed yet.
- Initialize analyzer.e_machine after creating perf.session rather than
when session is still None.
In test_sctop_python.sh:
- Use a private temporary directory via 'mktemp -d'.
- Drop '-a' and pass '-B -N --no-bpf-event' to 'perf record', and sleep
briefly in the subshell ('sh -c "sleep 0.1; sleep 0.05"') with a
bounded retry loop so 'sleep's PERF_RECORD_COMM and sys_enter events
are reliably captured under heavy load.
Fixes: b83f0bacf5e4f936 ("perf python: Port sctop 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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
