mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
Fix ring_buffer__poll() to return the number of non-discarded records consumed, just like its documentation states. It's also consistent with ring_buffer__consume() return. Fix up selftests with wrong expected results. Fixes:bf99c936f9("libbpf: Add BPF ring buffer support") Fixes:cb1c9ddd55("selftests/bpf: Add BPF ringbuf selftests") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]