Re: [PATCH bpf-next v7 6/6] selftests/bpf: Test subprogram instruction statistics
Eduard Zingerman <[email protected]>
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 2026-08-08 at 08:25 +0200, Kumar Kartikeya Dwivedi wrote: > Add small verifier programs with deterministic instruction streams to > exercise per-subprogram self and inclusive instruction accounting. Use > assembly for normal call chains and straight-line callback bodies containing > only moves, calls, and returns or exits, so control-flow pruning does not make > the expected counts unstable. Pass callback arguments as explicit assembly > operands so the compiler keeps their registers live across the asm block. > > Cover asynchronous callback attribution separately: main verification-root > totals include all callback exploration, while static and callback totals > remain local to their synchronous paths. > > Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> > --- Acked-by: Eduard Zingerman <[email protected]> ...