summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_ringbuf_overwrite.c
AgeCommit message (Collapse)AuthorLines
2025-10-27selftests/bpf: Add overwrite mode test for BPF ring bufferXu Kuohai-0/+98
Add overwrite mode test for BPF ring buffer. The test creates a BPF ring buffer in overwrite mode, then repeatedly reserves and commits records to check if the ring buffer works as expected both before and after overwriting occurs. Signed-off-by: Xu Kuohai <xukuohai@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20251018035738.4039621-3-xukuohai@huaweicloud.com