diff options
author | Yauheni Kaliuta <yauheni.kaliuta@redhat.com> | 2021-04-08 09:13:09 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-04-09 09:54:48 +0300 |
commit | f3f4c23e1238783f3d719cfbda6c5e2fd03a48c4 (patch) | |
tree | 39ee74e3a70de436a49f1bc5d815178f8388b5ea /tools/testing/selftests/bpf/progs/test_ringbuf_multi.c | |
parent | b3278099b2f6e81771c6c2b70fcf9a56e9ba5d93 (diff) | |
download | linux-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.c | 1 |
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"); |