]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add selftests validating the user ringbuf
authorDavid Vernet <void@manifault.com>
Tue, 20 Sep 2022 00:01:00 +0000 (19:01 -0500)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 21 Sep 2022 23:25:03 +0000 (16:25 -0700)
commit564169c1a984e27b9c90e33d65294a623265a414
treec369405c177735dd1749b47a9d3dc442d561e75e
parent9815638ba259a65ba38ab1bc5c86bd9090f006eb
selftests/bpf: Add selftests validating the user ringbuf

This change includes selftests that validate the expected behavior and
APIs of the new BPF_MAP_TYPE_USER_RINGBUF map type.

Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220920000100.477320-5-void@manifault.com
tools/testing/selftests/bpf/DENYLIST.s390x
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_user_ringbuf.h [new file with mode: 0644]
tools/testing/selftests/bpf/progs/user_ringbuf_fail.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/user_ringbuf_success.c [new file with mode: 0644]