selftests/bpf: add bpf_wq tests
authorBenjamin Tissoires <bentiss@kernel.org>
Sat, 20 Apr 2024 09:09:10 +0000 (11:09 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 24 Apr 2024 02:46:53 +0000 (19:46 -0700)
commitb4abee7c1ae3d59440e7915da28c6d2cd394738a
treea871c296f683f80a3bc59ffdcc383b357af5f497
parent246331e3f1eac905170a923f0ec76725c2558232
selftests/bpf: add bpf_wq tests

We simply try in all supported map types if we can store/load a bpf_wq.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240420-bpf_wq-v2-10-6c986a5a741f@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/wq.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/wq.c [new file with mode: 0644]