selftests/bpf: Add bpf_arena_list test.
authorAlexei Starovoitov <ast@kernel.org>
Fri, 8 Mar 2024 01:08:11 +0000 (17:08 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 11 Mar 2024 22:43:43 +0000 (15:43 -0700)
commit9f2c156f90a422b4897a8c2831076a96a31413d1
tree5d4844a16170e216e023889c56d88b22e87cf67a
parent80a4129fcf20da3c6941411155a9b3b45caa5b8d
selftests/bpf: Add bpf_arena_list test.

bpf_arena_alloc.h - implements page_frag allocator as a bpf program.
bpf_arena_list.h - doubly linked link list as a bpf program.

Compiled as a bpf program and as native C code.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240308010812.89848-14-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/bpf_arena_alloc.h [new file with mode: 0644]
tools/testing/selftests/bpf/bpf_arena_list.h [new file with mode: 0644]
tools/testing/selftests/bpf/prog_tests/arena_list.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/arena_list.c [new file with mode: 0644]