summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_ringbuf_multi.c
diff options
context:
space:
mode:
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>2021-04-08 09:13:09 +0300
committerAndrii Nakryiko <andrii@kernel.org>2021-04-09 09:54:48 +0300
commitf3f4c23e1238783f3d719cfbda6c5e2fd03a48c4 (patch)
tree39ee74e3a70de436a49f1bc5d815178f8388b5ea /tools/testing/selftests/bpf/progs/test_ringbuf_multi.c
parentb3278099b2f6e81771c6c2b70fcf9a56e9ba5d93 (diff)
downloadlinux-f3f4c23e1238783f3d719cfbda6c5e2fd03a48c4.tar.xz
selftests/bpf: ringbuf_multi: Use runtime page size
Set bpf table sizes dynamically according to the runtime page size 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 <yauheni.kaliuta@redhat.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210408061310.95877-8-yauheni.kaliuta@redhat.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_ringbuf_multi.c')
-rw-r--r--tools/testing/selftests/bpf/progs/test_ringbuf_multi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_ringbuf_multi.c b/tools/testing/selftests/bpf/progs/test_ringbuf_multi.c
index edf3b6953533..055c10b2ff80 100644
--- a/tools/testing/selftests/bpf/progs/test_ringbuf_multi.c
+++ b/tools/testing/selftests/bpf/progs/test_ringbuf_multi.c
@@ -15,7 +15,6 @@ struct sample {
struct ringbuf_map {
__uint(type, BPF_MAP_TYPE_RINGBUF);
- __uint(max_entries, 1 << 12);
} ringbuf1 SEC(".maps"),
ringbuf2 SEC(".maps");