aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/net.c
diff options
context:
space:
mode:
authorDave Marchevsky <[email protected]>2022-10-20 16:07:20 +0000
committerAlexei Starovoitov <[email protected]>2022-10-22 02:23:34 +0000
commit51ee71d38d8ce5a30496251200ab2f12b71e1fb6 (patch)
tree8678c3ad0da143bac254b1c0053594a5f7c6023f /tools/bpf/bpftool/net.c
parentbpf: Consider all mem_types compatible for map_{key,value} args (diff)
downloadkernel-51ee71d38d8ce5a30496251200ab2f12b71e1fb6.tar.gz
kernel-51ee71d38d8ce5a30496251200ab2f12b71e1fb6.zip
selftests/bpf: Add test verifying bpf_ringbuf_reserve retval use in map ops
Add a test_ringbuf_map_key test prog, borrowing heavily from extant test_ringbuf.c. The program tries to use the result of bpf_ringbuf_reserve as map_key, which was not possible before previouis commits in this series. The test runner added to prog_tests/ringbuf.c verifies that the program loads and does basic sanity checks to confirm that it runs as expected. Also, refactor test_ringbuf such that runners for existing test_ringbuf and newly-added test_ringbuf_map_key are subtests of 'ringbuf' top-level test. Signed-off-by: Dave Marchevsky <[email protected]> Acked-by: Yonghong Song <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/net.c')
0 files changed, 0 insertions, 0 deletions