]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Make reg_bounds test more robust
authorAlexei Starovoitov <ast@kernel.org>
Wed, 25 Mar 2026 01:22:42 +0000 (18:22 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Mar 2026 15:50:33 +0000 (08:50 -0700)
commit400ff899c336c24bf4d34479f98cef2fd2d3482a
treef8d71c3f020fc60bf745956ae95f2be35f2f6c35
parent9f7d8fa6817e2709846fc7f5c9f60254e536d138
selftests/bpf: Make reg_bounds test more robust

The verifier log output may contain multiple lines that start with
18: (bf) r0 = r6
teach reg_bounds to look for lines that have ';' in them,
since reg_bounds test is looking for:
18: (bf) r0 = r6       ; R0=... R6=...

Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260325012242.45606-1-alexei.starovoitov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/reg_bounds.c