diff options
author | 2024-06-26 15:46:27 +0200 | |
---|---|---|
committer | 2024-06-27 11:00:12 +0200 | |
commit | 015a4a2a439b285943da471d38b2721bbe4d8b39 (patch) | |
tree | a3d840ad28df57e4e9bab80e8b57ba6289863fb0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | HID: bpf: prevent infinite recursions with hid_hw_raw_requests hooks (diff) | |
download | wireguard-linux-015a4a2a439b285943da471d38b2721bbe4d8b39.tar.xz wireguard-linux-015a4a2a439b285943da471d38b2721bbe4d8b39.zip |
selftests/hid: add tests for hid_hw_raw_request HID-BPF hooks
We add 3 new tests:
- first, we make sure we can prevent the raw_request to happen
- second, we make sure that we can detect that a given hidraw client
was actually doing the request, and for that client only, call ourself
hid_bpf_hw_request(), returning a custom value
- last, we ensure that we can not loop between hooks for
hid_hw_raw_request() and manual calls to hid_bpf_hw_request() from that
hook
Link: https://patch.msgid.link/20240626-hid_hw_req_bpf-v2-6-cfd60fb6c79f@kernel.org
Acked-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions