selftests/bpf: Add tests for ring__avail_data_size
authorMartin Kelly <martin.kelly@crowdstrike.com>
Mon, 25 Sep 2023 21:50:39 +0000 (14:50 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 25 Sep 2023 23:22:43 +0000 (16:22 -0700)
commitf3a01d385fbb9c76abfad8d104d08453f289e2d3
tree2964171c1549bb46acff0abb8b77f5d19cf807ab
parent3b34d2972612299fb38ad7f3c2bc62c2d03237f3
selftests/bpf: Add tests for ring__avail_data_size

Add test for the new API ring__avail_data_size.

Signed-off-by: Martin Kelly <martin.kelly@crowdstrike.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230925215045.2375758-9-martin.kelly@crowdstrike.com
tools/testing/selftests/bpf/prog_tests/ringbuf.c