selftests/bpf: add checks for bpf_wq_set_callback()
authorBenjamin Tissoires <bentiss@kernel.org>
Sat, 20 Apr 2024 09:09:14 +0000 (11:09 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 24 Apr 2024 02:46:57 +0000 (19:46 -0700)
commit01b7b1c5f3cc029bdd2652eba61e953ccd286c0e
treed42f14399f3586735de7a902beeb691b43ae1f24
parent81f1d7a583fa1fa14f0c4e6140d34b5e3d08d227
selftests/bpf: add checks for bpf_wq_set_callback()

We assign the callback and set everything up.
The actual tests of these callbacks will be done when bpf_wq_start() is
available.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240420-bpf_wq-v2-14-6c986a5a741f@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_experimental.h
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod_kfunc.h
tools/testing/selftests/bpf/progs/wq.c
tools/testing/selftests/bpf/progs/wq_failures.c