提交 4e0b1b07 编写于 作者: B Benjamin Tissoires

HID: bpf: enforce HID_BPF dependencies

As mentioned in the link below, having JIT and BPF is not enough to
have fentry/fexit/fmod_ret APIs. This resolves the error that
happens on a system without tracing enabled when hid-bpf tries to
load itself.

Link: https://lore.kernel.org/r/CABRcYmKyRchQhabi1Vd9RcMQFCcb=EtWyEbFDFRTc-L-U8WhgA@mail.gmail.com
Fixes: f5c27da4 ("HID: initial BPF implementation")
Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: NFlorent Revest <revest@chromium.org>
Reviewed-by: NJiri Kosina <jkosina@suse.cz>
Link: https://lore.kernel.org/r/20221206145936.922196-4-benjamin.tissoires@redhat.com
上级 86020156
...@@ -4,7 +4,8 @@ menu "HID-BPF support" ...@@ -4,7 +4,8 @@ menu "HID-BPF support"
config HID_BPF config HID_BPF
bool "HID-BPF support" bool "HID-BPF support"
default HID_SUPPORT default HID_SUPPORT
depends on BPF && BPF_SYSCALL depends on BPF && BPF_SYSCALL && \
DYNAMIC_FTRACE_WITH_DIRECT_CALLS
help help
This option allows to support eBPF programs on the HID subsystem. This option allows to support eBPF programs on the HID subsystem.
eBPF programs can fix HID devices in a lighter way than a full eBPF programs can fix HID devices in a lighter way than a full
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册