diff options
| author | 2026-03-31 15:04:34 +0800 | |
|---|---|---|
| committer | 2026-03-31 15:47:14 -0700 | |
| commit | 3e6475dc60853456e1aca2b85bd6603eadb3f6a1 (patch) | |
| tree | aa1e56a96df02431d1ffae47f6737b42029b5a51 /include/linux/clk/ssh:/git@git.zx2c4.com | |
| parent | bpf: Clarify BPF_RB_NO_WAKEUP behavior for bpf_ringbuf_discard() (diff) | |
selftests/bpf: Test access to ringbuf position with map pointer
Add the testing to access the bpf_ringbuf with the map pointer.
"consumer_pos" and "producer_pos" is accessed in this testing. We reserve
128 bytes in the ringbuf to test the producer_pos, which should be
"128 + BPF_RINGBUF_HDR_SZ".
It will be helpful if we want to evaluate the usage of the ringbuf in bpf
prog with the consumer and producer position.
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/bpf/20260331070434.10037-1-dongml2@chinatelecom.cn
Diffstat (limited to 'include/linux/clk/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
