linux/tools/testing/selftests/hid
Benjamin Tissoires 8d355b56f2 selftests/hid: fix kfunc inclusions with newer bpftool
bpftool now embeds the kfuncs definitions directly in the generated
vmlinux.h

This is great, but because the selftests dir might be compiled with
HID_BPF disabled, we have no guarantees to be able to compile the
sources with the generated kfuncs.

If we have the kfuncs, because we have the `__not_used` hack, the newly
defined kfuncs do not match the ones from vmlinux.h and things go wrong.

Prevent vmlinux.h to define its kfuncs and also add the missing `__weak`
symbols for our custom kfuncs definitions

Link: https://patch.msgid.link/20241128-fix-new-bpftool-v1-1-c9abdf94a719@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
2024-11-29 15:27:04 +01:00
..
progs selftests/hid: fix kfunc inclusions with newer bpftool 2024-11-29 15:27:04 +01:00
tests selftests/hid: skip tests with HID-BPF if udev-hid-bpf is not installed 2024-05-07 15:39:58 +02:00
.gitignore selftests/hid: Add initial hidraw tests skeleton 2024-08-29 10:39:37 +02:00
Makefile Merge branch 'for-6.13/bpf' into for-linus 2024-11-18 22:02:17 +01:00
config bpfilter: remove bpfilter 2024-01-04 10:23:10 -08:00
config.common selftests/hid: add KASAN to the VM tests 2024-04-10 16:37:23 +02:00
config.x86_64 selftests: hid: add vmtest.sh 2023-01-18 22:08:38 +01:00
hid-apple.sh selftests: hid: import hid-tools hid-apple tests 2023-04-12 17:13:38 +02:00
hid-core.sh selftests: hid: import hid-tools hid-core tests 2023-04-12 17:13:37 +02:00
hid-gamepad.sh selftests: hid: import hid-tools hid-gamepad tests 2023-04-12 17:13:37 +02:00
hid-ite.sh selftests: hid: import hid-tools hid-ite tests 2023-04-12 17:13:38 +02:00
hid-keyboard.sh selftests: hid: import hid-tools hid-keyboards tests 2023-04-12 17:13:37 +02:00
hid-mouse.sh selftests: hid: import hid-tools hid-mouse tests 2023-04-12 17:13:37 +02:00
hid-multitouch.sh selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
hid-sony.sh selftests: hid: import hid-tools hid-sony and hid-playstation tests 2023-04-12 17:13:38 +02:00
hid-tablet.sh selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
hid-usb_crash.sh selftests: hid: import hid-tools usb-crash tests 2023-04-12 17:13:38 +02:00
hid-wacom.sh selftests: hid: import hid-tools wacom tests 2023-04-12 17:13:38 +02:00
hid_bpf.c Revert "HID: bpf: allow write access to quirks field in struct hid_device" 2024-11-25 09:21:47 -08:00
hid_common.h selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device 2024-10-04 16:10:46 +02:00
hidraw.c selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device 2024-10-04 16:10:46 +02:00
run-hid-tools-tests.sh selftests: hid: fix typo and exit code 2024-11-28 14:43:49 +01:00
settings selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
vmtest.sh selftests/hid: vmtest.sh: allow finer control on the build steps 2023-12-07 09:52:03 +01:00