Files
kernel_xiaomi_sm8250/include/linux
Matt Mullins 24650d3d81 bpf: add writable context for raw tracepoints
This is an opt-in interface that allows a tracepoint to provide a safe
buffer that can be written from a BPF_PROG_TYPE_RAW_TRACEPOINT program.
The size of the buffer must be a compile-time constant, and is checked
before allowing a BPF program to attach to a tracepoint that uses this
feature.

The pointer to this buffer will be the first argument of tracepoints
that opt in; the pointer is valid and can be bpf_probe_read() by both
BPF_PROG_TYPE_RAW_TRACEPOINT and BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
programs that attach to such a tracepoint, but the buffer to which it
points may only be written by the latter.

Signed-off-by: Matt Mullins <mmullins@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2025-09-24 21:37:43 +02:00
..
2022-10-26 13:19:32 +02:00
2022-12-17 00:25:35 +02:00
2025-09-24 21:37:19 +02:00
2025-09-24 21:37:19 +02:00
2025-09-24 21:37:18 +02:00
2024-06-09 02:32:30 +03:00
2021-08-27 15:24:34 +02:00
2022-08-25 11:15:23 +02:00
2021-06-30 19:17:14 +02:00
2023-06-21 15:39:57 +02:00
2024-07-06 10:19:40 +00:00
2023-02-22 12:28:07 +00:00
2023-03-06 19:14:22 +01:00
2023-10-25 11:16:20 +02:00
2021-12-14 10:18:04 +01:00
2023-05-18 15:51:07 +00:00
2024-02-23 08:12:39 +01:00
2022-02-28 18:50:08 +05:30