OSDN Git Service

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)
commite5a9df51c74671cfe15af1d50e5f508bd3efddab
treec369405c177735dd1749b47a9d3dc442d561e75e
parentb66ccae01f1ddce47fe2c7f393a3a5c5ab3d7f06
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]