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 include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/bpf.h+2−0
@@ -6665,6 +6665,8 @@ struct bpf_link_info { · 6664 unmodified lines
66656665 __u32 attach_type;
66666666 __u32 target_obj_id; /* prog_id for PROG_EXT, otherwise btf object id */
66676667 __u32 target_btf_id; /* BTF type id inside the object */
6668+ __u32 :32;
6669+ __u64 cookie;
66686670 } tracing;
66696671 struct {
66706672 __u64 cgroup_id;