1. 12 Apr, 2023 5 commits
  2. 23 Feb, 2023 1 commit
  3. 10 Dec, 2022 1 commit
  4. 15 Nov, 2022 1 commit
    • Benjamin Tissoires's avatar
      selftests: add tests for the HID-bpf initial implementation · dbb60c8a
      Benjamin Tissoires authored
      
      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: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      dbb60c8a