On 8/13/26 7:16 AM, Jiayuan Chen wrote:
The test asserts exact per-subprog insns_self/insns_total values and the
aggregate processed count, but these depend on compiler codegen. The
expected values match -mcpu=v3 output; under -mcpu=v4 clang emits a
sign-extending load in global_good() instead of a load plus two shifts,
so the subprog is verified in 3 insns instead of 5 and the test fails on
the cpuv4 flavor.
Rewrite the involved subprogs as naked functions with hand-written
instruction sequences using only v1 instructions, so the verified insn
counts no longer depend on cpu version or compiler codegen.
Fixes: c2e6c7de8830 ("bpf: Show more useful info in stack depth stats")
Signed-off-by: Jiayuan Chen <[email protected]>
$subj should have been bpf-next to route to BPF CI.
Anyway, it was fixed in the tree via:
9786d424a36b ("selftests/bpf: Fix chained_global_func_calls_success() for cpu
v4for-next")
Thanks,
Daniel