diff options
| author | Tao Chen <chen.dylane@linux.dev> | 2025-06-06 19:58:14 +0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2025-06-10 02:45:17 +0300 |
| commit | c7beb48344d2ea0f3f1869b078309dbeb2ed4c96 (patch) | |
| tree | 424bdfae6c6ce20641a8a71adc50a3df1ebe146e /tools/include | |
| parent | f3effef2e8976c6b0edfd849129417ad3b5eab00 (diff) | |
| download | linux-c7beb48344d2ea0f3f1869b078309dbeb2ed4c96.tar.xz | |
bpf: Add cookie to tracing bpf_link_info
bpf_tramp_link includes cookie info, we can add it in bpf_link_info.
Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250606165818.3394397-1-chen.dylane@linux.dev
Diffstat (limited to 'tools/include')
| -rw-r--r-- | tools/include/uapi/linux/bpf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 25e9cf92ffaf..194ed9891b40 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -6665,6 +6665,8 @@ struct bpf_link_info { __u32 attach_type; __u32 target_obj_id; /* prog_id for PROG_EXT, otherwise btf object id */ __u32 target_btf_id; /* BTF type id inside the object */ + __u32 :32; + __u64 cookie; } tracing; struct { __u64 cgroup_id; |
