Thread (45 messages) 45 messages, 6 authors, 2022-08-30

Re: [PATCH bpf-next v7 15/24] HID: bpf: allocate data memory for device_event BPF programs

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2022-07-28 15:10:19
Also in: bpf, linux-doc, linux-input, linux-kselftest, lkml

On Thu, Jul 21, 2022 at 05:36:16PM +0200, Benjamin Tissoires wrote:
We need to also be able to change the size of the report.
Reducing it is easy, because we already have the incoming buffer that is
big enough, but extending it is harder.

Pre-allocate a buffer that is big enough to handle all reports of the
device, and use that as the primary buffer for BPF programs.
To be able to change the size of the buffer, we change the device_event
API and request it to return the size of the buffer.

Signed-off-by: Benjamin Tissoires <redacted>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help