bpf_tramp_link includes cookie info, we can add it in bpf_link_info.
Showing the changes to tools/include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -6665,6 +6665,8 @@ struct bpf_link_info { · 6664 unmodified lines | |||
| 6665 | __u32 attach_type; | 6665 | __u32 attach_type; |
| 6666 | __u32 target_obj_id; /* prog_id for PROG_EXT, otherwise btf object id */ | 6666 | __u32 target_obj_id; /* prog_id for PROG_EXT, otherwise btf object id */ |
| 6667 | __u32 target_btf_id; /* BTF type id inside the object */ | 6667 | __u32 target_btf_id; /* BTF type id inside the object */ |
| 6668 | __u32 :32; | ||
| 6669 | __u64 cookie; | ||
| 6668 | } tracing; | 6670 | } tracing; |
| 6669 | struct { | 6671 | struct { |
| 6670 | __u64 cgroup_id; | 6672 | __u64 cgroup_id; |