selftests/hid: disable struct_ops auto-attach
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 23 Jul 2024 16:21:52 +0000 (18:21 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Wed, 24 Jul 2024 16:27:21 +0000 (18:27 +0200)
commitf64c1a4593391c57accf32693a14ef45f8162b5c
tree1934086f2f586eb84fd81be3997b10e1d22082e4
parentff9fbcafbaf13346c742c0d672a22f5ac20b9d92
selftests/hid: disable struct_ops auto-attach

Since commit 08ac454e258e ("libbpf: Auto-attach struct_ops BPF maps in
BPF skeleton"), libbpf automatically calls bpf_map__attach_struct_ops()
on every struct_ops it sees in the bpf object. The problem is that
our test bpf object has many of them but only one should be manually
loaded at a time, or we end up locking the syscall.

Link: https://patch.msgid.link/20240723-fix-6-11-bpf-v1-2-b9d770346784@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/hid_bpf.c