aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_ringbuf.c
AgeCommit message (Collapse)AuthorFilesLines
2021-04-08selftests/bpf: ringbuf: Use runtime page sizeYauheni Kaliuta1-1/+0
Replace hardcoded 4096 with runtime value in the userspace part of the test and set bpf table sizes dynamically according to the value. Do not switch to ASSERT macros, keep CHECK, for consistency with the rest of the test. Can be a separate cleanup patch. Signed-off-by: Yauheni Kaliuta <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
2020-06-01selftests/bpf: Add BPF ringbuf selftestsAndrii Nakryiko1-0/+78
Both singleton BPF ringbuf and BPF ringbuf with map-in-map use cases are tested. Also reserve+submit/discards and output variants of API are validated. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>