]> www.infradead.org Git - linux.git/commit
selftests/bpf: Add tests for add_const
authorAlexei Starovoitov <ast@kernel.org>
Thu, 13 Jun 2024 01:38:15 +0000 (18:38 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 14 Jun 2024 19:52:40 +0000 (21:52 +0200)
commitdedf56d775c0bebbc3003bfb988dddaf0a583c28
tree9b5db9431d4b9630956715796a7e1d7f9bfb255c
parent6870bdb3f4f2991193449f9de57109b3e263f55c
selftests/bpf: Add tests for add_const

Improve arena based tests and add several C and asm tests
with specific pattern.
These tests would have failed without add_const verifier support.

Also add several loop_inside_iter*() tests that are not related to add_const,
but nice to have.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240613013815.953-5-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/progs/arena_htab.c
tools/testing/selftests/bpf/progs/verifier_iterating_callbacks.c