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
This commit is contained in:
David Vernet 2022-09-19 19:01:00 -05:00 • committed by Andrii Nakryiko
commit e5a9df51c7
5 changed files with 1185 additions and 0 deletions