diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-03-20 02:38:50 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-03-20 09:05:34 +0300 |
commit | 68ca5d4eebb8c4de246ee5f634eee26bc689562d (patch) | |
tree | bca6f6bf993364106eab3d99e79796e4ca01685e /tools/include/uapi | |
parent | d4dfc5700e867b22ab94f960f9a9972696a637d5 (diff) | |
download | linux-68ca5d4eebb8c4de246ee5f634eee26bc689562d.tar.xz |
bpf: support BPF cookie in raw tracepoint (raw_tp, tp_btf) programs
Wire up BPF cookie for raw tracepoint programs (both BTF and non-BTF
aware variants). This brings them up to part w.r.t. BPF cookie usage
with classic tracepoint and fentry/fexit programs.
Acked-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Message-ID: <20240319233852.1977493-4-andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include/uapi')
-rw-r--r-- | tools/include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 3c42b9f1bada..bf80b614c4db 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -1664,6 +1664,7 @@ union bpf_attr { struct { /* anonymous struct used by BPF_RAW_TRACEPOINT_OPEN command */ __u64 name; __u32 prog_fd; + __aligned_u64 cookie; } raw_tracepoint; struct { /* anonymous struct for BPF_BTF_LOAD */ |