Commit Graph

5 Commits

Author SHA1 Message Date
yunwei37
277ecbaf9d Add HID-BPF tutorial and implementation for virtual mouse input modification
- Introduced a comprehensive tutorial in README.md explaining how to fix broken HID devices using eBPF without kernel patches.
- Implemented a userspace program (hid-input-modifier.c) that creates a virtual HID mouse using the uhid interface and sends synthetic mouse events.
- Developed a BPF program (hid-input-modifier.bpf.c) that intercepts HID events and modifies mouse movement data, effectively doubling the X and Y movement.
- Created necessary header files (hid_bpf.h, hid_bpf_defs.h, hid_bpf_helpers.h) to define structures and helper functions for the BPF program.
- Added functionality to find and manage the virtual HID device, ensuring seamless integration with the BPF program.
2025-10-05 22:40:58 -07:00
yunwei37
1696b2b559 update 43 for xdp test 2024-11-30 02:10:57 +00:00
Yusheng Zheng
049b40d222 rename README to chinese documents 2024-10-20 07:20:38 +00:00
Yusheng Zheng
9cfb6ba099 update kfunc example 2024-10-09 00:52:23 +00:00
云微
ab0d1eef08 add kfuncs docs (#136)
* add

* update

* update

* add ci

* update

* fix
2024-10-03 04:30:16 +01:00