Andrii Nakryiko
7b3a063824
selftests/bpf: Test libbpf's ringbuf size fix up logic
...
Make sure we always excercise libbpf's ringbuf map size adjustment logic
by specifying non-zero size that's definitely not a page size multiple.
Signed-off-by: Andrii Nakryiko <[email protected] >
Signed-off-by: Daniel Borkmann <[email protected] >
Link: https://lore.kernel.org/bpf/[email protected]
2022-05-09 17:15:32 +02:00
Yauheni Kaliuta
cfc0889ceb
selftests/bpf: ringbuf_multi: Test bpf_map__set_inner_map_fd
...
Test map__set_inner_map_fd() interaction with map-in-map
initialization. Use hashmap of maps just to make it different to
existing array of maps.
Signed-off-by: Yauheni Kaliuta <[email protected] >
Signed-off-by: Andrii Nakryiko <[email protected] >
Link: https://lore.kernel.org/bpf/[email protected]
2021-04-08 23:54:48 -07:00
Yauheni Kaliuta
f3f4c23e12
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 <[email protected] >
Signed-off-by: Andrii Nakryiko <[email protected] >
Link: https://lore.kernel.org/bpf/[email protected]
2021-04-08 23:54:48 -07:00
Andrii Nakryiko
cb1c9ddd55
selftests/bpf: Add BPF ringbuf selftests
...
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] >
2020-06-01 14:38:22 -07:00