Searched hist:dbb60c8a26daf388f183f599e1e96de5bb9f96e1 (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/hid/ |
H A D | config | dbb60c8a26daf388f183f599e1e96de5bb9f96e1 Thu Nov 03 16:57:45 CET 2022 Benjamin Tissoires <benjamin.tissoires@redhat.com> selftests: add tests for the HID-bpf initial implementation
The tests are pretty basic: - create a virtual uhid device that no userspace will like (to not mess up the running system) - attach a BPF prog to it - open the matching hidraw node - inject one event and check: * that the BPF program can do something on the event stream * can modify the event stream - add another test where we attach/detach BPF programs to see if we get errors
Note: the Makefile is extracted from selftests/bpf so we can rebuild the libbpf and bpftool components from the current kernel tree without relying on system installed components.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
H A D | hid_bpf.c | dbb60c8a26daf388f183f599e1e96de5bb9f96e1 Thu Nov 03 16:57:45 CET 2022 Benjamin Tissoires <benjamin.tissoires@redhat.com> selftests: add tests for the HID-bpf initial implementation
The tests are pretty basic: - create a virtual uhid device that no userspace will like (to not mess up the running system) - attach a BPF prog to it - open the matching hidraw node - inject one event and check: * that the BPF program can do something on the event stream * can modify the event stream - add another test where we attach/detach BPF programs to see if we get errors
Note: the Makefile is extracted from selftests/bpf so we can rebuild the libbpf and bpftool components from the current kernel tree without relying on system installed components.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
H A D | Makefile | dbb60c8a26daf388f183f599e1e96de5bb9f96e1 Thu Nov 03 16:57:45 CET 2022 Benjamin Tissoires <benjamin.tissoires@redhat.com> selftests: add tests for the HID-bpf initial implementation
The tests are pretty basic: - create a virtual uhid device that no userspace will like (to not mess up the running system) - attach a BPF prog to it - open the matching hidraw node - inject one event and check: * that the BPF program can do something on the event stream * can modify the event stream - add another test where we attach/detach BPF programs to see if we get errors
Note: the Makefile is extracted from selftests/bpf so we can rebuild the libbpf and bpftool components from the current kernel tree without relying on system installed components.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
/linux/tools/testing/selftests/hid/progs/ |
H A D | hid_bpf_helpers.h | dbb60c8a26daf388f183f599e1e96de5bb9f96e1 Thu Nov 03 16:57:45 CET 2022 Benjamin Tissoires <benjamin.tissoires@redhat.com> selftests: add tests for the HID-bpf initial implementation
The tests are pretty basic: - create a virtual uhid device that no userspace will like (to not mess up the running system) - attach a BPF prog to it - open the matching hidraw node - inject one event and check: * that the BPF program can do something on the event stream * can modify the event stream - add another test where we attach/detach BPF programs to see if we get errors
Note: the Makefile is extracted from selftests/bpf so we can rebuild the libbpf and bpftool components from the current kernel tree without relying on system installed components.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
H A D | hid.c | dbb60c8a26daf388f183f599e1e96de5bb9f96e1 Thu Nov 03 16:57:45 CET 2022 Benjamin Tissoires <benjamin.tissoires@redhat.com> selftests: add tests for the HID-bpf initial implementation
The tests are pretty basic: - create a virtual uhid device that no userspace will like (to not mess up the running system) - attach a BPF prog to it - open the matching hidraw node - inject one event and check: * that the BPF program can do something on the event stream * can modify the event stream - add another test where we attach/detach BPF programs to see if we get errors
Note: the Makefile is extracted from selftests/bpf so we can rebuild the libbpf and bpftool components from the current kernel tree without relying on system installed components.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
/linux/tools/testing/selftests/ |
H A D | Makefile | diff dbb60c8a26daf388f183f599e1e96de5bb9f96e1 Thu Nov 03 16:57:45 CET 2022 Benjamin Tissoires <benjamin.tissoires@redhat.com> selftests: add tests for the HID-bpf initial implementation
The tests are pretty basic: - create a virtual uhid device that no userspace will like (to not mess up the running system) - attach a BPF prog to it - open the matching hidraw node - inject one event and check: * that the BPF program can do something on the event stream * can modify the event stream - add another test where we attach/detach BPF programs to see if we get errors
Note: the Makefile is extracted from selftests/bpf so we can rebuild the libbpf and bpftool components from the current kernel tree without relying on system installed components.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
/linux/ |
H A D | MAINTAINERS | diff dbb60c8a26daf388f183f599e1e96de5bb9f96e1 Thu Nov 03 16:57:45 CET 2022 Benjamin Tissoires <benjamin.tissoires@redhat.com> selftests: add tests for the HID-bpf initial implementation
The tests are pretty basic: - create a virtual uhid device that no userspace will like (to not mess up the running system) - attach a BPF prog to it - open the matching hidraw node - inject one event and check: * that the BPF program can do something on the event stream * can modify the event stream - add another test where we attach/detach BPF programs to see if we get errors
Note: the Makefile is extracted from selftests/bpf so we can rebuild the libbpf and bpftool components from the current kernel tree without relying on system installed components.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|