selftests/bpf: Add unit tests for bpf_arena_alloc/free_pages
authorAlexei Starovoitov <ast@kernel.org>
Fri, 8 Mar 2024 01:08:10 +0000 (17:08 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 11 Mar 2024 22:43:43 +0000 (15:43 -0700)
commit80a4129fcf20da3c6941411155a9b3b45caa5b8d
treee044153bc798df2cec3cce5030f788c6c4023e15
parent204c628730c62de5a0b593008549a9b95aa96b01
selftests/bpf: Add unit tests for bpf_arena_alloc/free_pages

Add unit tests for bpf_arena_alloc/free_pages() functionality
and bpf_arena_common.h with a set of common helpers and macros that
is used in this test and the following patches.

Also modify test_loader that didn't support running bpf_prog_type_syscall
programs.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240308010812.89848-13-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/DENYLIST.aarch64
tools/testing/selftests/bpf/DENYLIST.s390x
tools/testing/selftests/bpf/bpf_arena_common.h [new file with mode: 0644]
tools/testing/selftests/bpf/prog_tests/verifier.c
tools/testing/selftests/bpf/progs/verifier_arena.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_loader.c