History

bpf: Add cookie to tracing bpf_link_info

bpf_tramp_link includes cookie info, we can add it in bpf_link_info.

Tao Chen committed 1 year ago

Commit c7beb481 parent f3effef3 files · +5 −0Browse files

Showing the changes to tools/include/uapi/linux (1 of 3 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+2−0
@@ -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;