bpf: Sync uapi bpf.h to tools directory
authorYonghong Song <yonghong.song@linux.dev>
Mon, 25 Mar 2024 03:38:42 +0000 (20:38 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 25 Mar 2024 15:36:56 +0000 (16:36 +0100)
There is a difference between kernel uapi bpf.h and tools
uapi bpf.h. There is no functionality difference, but let
us sync properly to make it easy for later bpf.h update.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240325033842.1693553-1-yonghong.song@linux.dev
tools/include/uapi/linux/bpf.h

index bf80b614c4db87fcf297e10c24607a77dcb99601..9585f534535359993861e7f23c901664919c177c 100644 (file)
@@ -1662,9 +1662,10 @@ union bpf_attr {
        } query;
 
        struct { /* anonymous struct used by BPF_RAW_TRACEPOINT_OPEN command */
-               __u64 name;
-               __u32 prog_fd;
-               __aligned_u64 cookie;
+               __u64           name;
+               __u32           prog_fd;
+               __u32           :32;
+               __aligned_u64   cookie;
        } raw_tracepoint;
 
        struct { /* anonymous struct for BPF_BTF_LOAD */