selftests/hid: add wq test for hid_bpf_input_report()
authorBenjamin Tissoires <bentiss@kernel.org>
Wed, 26 Jun 2024 13:46:31 +0000 (15:46 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Thu, 27 Jun 2024 09:00:48 +0000 (11:00 +0200)
commitfe8d561db3e82a1130c59ebc143d557b0bdb0cff
tree8fe5ee74baf94901735e754336b6fd91b1cd1b2d
parentfa03f398a8ac46f46927e0b509b302ebe0ed7e8a
selftests/hid: add wq test for hid_bpf_input_report()

Now that bpf_wq is available, we can write a test with it. Having
hid_bpf_input_report() waiting for the device means that we can
directly call it, and we get that event when the device is ready.

Link: https://patch.msgid.link/20240626-hid_hw_req_bpf-v2-10-cfd60fb6c79f@kernel.org
Acked-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/hid_bpf.c
tools/testing/selftests/hid/progs/hid.c
tools/testing/selftests/hid/progs/hid_bpf_helpers.h