Skip to content

Commit 75fa8f9

Browse files
Tao Chenqmonnet
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent dab7e2f commit 75fa8f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/bpf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6665,6 +6665,8 @@ struct bpf_link_info {
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;

0 commit comments

Comments
 (0)