selftests/bpf: Add tests for ring__*_pos
authorMartin Kelly <martin.kelly@crowdstrike.com>
Mon, 25 Sep 2023 21:50:37 +0000 (14:50 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 25 Sep 2023 23:22:42 +0000 (16:22 -0700)
commitb18db8712ecf5c880da222f6e0d7be53f0af4c4d
tree49189a4fd011e0085cbb0e15d31973896429f81a
parent059a8c0c5acd37ecfa64f1832e8765d30f253ce8
selftests/bpf: Add tests for ring__*_pos

Add tests for the new APIs ring__producer_pos and ring__consumer_pos.

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-7-martin.kelly@crowdstrike.com
tools/testing/selftests/bpf/prog_tests/ringbuf.c