Skip to content

perf check: skip a call graph perf cannot record on the machine - #3711

Merged
tamnd merged 2 commits into
mainfrom
tools/perf-skip-graph
Oct 16, 2026
Merged

tamnd merged 2 commits into
mainfrom
tools/perf-skip-graph

Conversation

@tamnd

@tamnd tamnd commented Oct 16, 2026

Copy link
Copy Markdown
Owner

The "linux gdb and perf on aarch64-linux-gnu" job has failed on every run of main. The fp rows pass, then perf refuses --call-graph=dwarf with cpu-clock:u on the GitHub arm runner ("PMU Hardware doesn't support sampling/overflow-interrupts") and the script stops with exit 255.

tests/tools/perf.sh now records true once with each call graph before the real runs, and a call graph that perf cannot record there is skipped with a SKIP line that gives perf's own reason. The fp comparison still runs and still fails the job when the cc stacks are worse.

On the Linux box the script records both call graphs and passes as before. With a perf on PATH that refuses dwarf the same way the runner does, it prints the fp rows, then "SKIP dwarf: perf cannot record this call graph here: cpu-clock:uH: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat'", and exits 0.

On the GitHub arm runner perf refuses --call-graph=dwarf with cpu-clock:u, saying the PMU cannot sample, so the aarch64 gdb and perf job stopped there with exit 255 after the fp rows passed. The script now records true once with each call graph first and skips one that fails with a SKIP line that gives perf's reason.
@tamnd tamnd added kind/bug Crash, wrong diagnostic, or a valid program rejected area/debug DWARF generation and the debugger differential area/testing The corpus, the fuzzers, the target ladder, and CI labels Oct 16, 2026
@tamnd
tamnd merged commit 6037d18 into main Oct 16, 2026
@tamnd
tamnd deleted the tools/perf-skip-graph branch October 16, 2026 23:13
@tamnd tamnd mentioned this pull request Oct 16, 2026
11 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/debug DWARF generation and the debugger differential area/testing The corpus, the fuzzers, the target ladder, and CI kind/bug Crash, wrong diagnostic, or a valid program rejected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant