summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMenglong Dong <menglong8.dong@gmail.com>2026-03-31 15:04:34 +0800
committerAndrii Nakryiko <andrii@kernel.org>2026-03-31 15:47:14 -0700
commit3e6475dc60853456e1aca2b85bd6603eadb3f6a1 (patch)
treeaa1e56a96df02431d1ffae47f6737b42029b5a51 /tools/perf/scripts/python
parentf9a80c7ce49e2a77b769264712fe2f59479b5f5a (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions