hidutils / hid-recorder

A utility to record HID data from /dev/hidraw devices
MIT License
1 stars 4 forks source link

Also record the raw device events through BPF #25

Closed bentiss closed 1 month ago

bentiss commented 2 months ago

There are multiple case where the events forwarded to hidraw are not the pristine ones from the device:

Let's inject a new HID-BPF filter in front of anyone else, and use it to retrieve the data from the device.

This is controlled by a new --bpf flag or will also be enabl;ed if we detect that a HID-BPF filter is in used on the given device.

Further improvements can be done:

bentiss commented 2 months ago

And I've now fixed the github workflow.

So I think we can have another look at this now.

Note: I've also added a commit to support packets longer than 64 bytes, but the syntax is not very clean as there will be 2 B: tags: one for the beginning with the timestamp and the total size, and all the rest will have just B: and the remaining bytes.

whot commented 1 month ago

Let's get this merged and fix up any remaining things later, thanks for the patches!