Skip to content

Commit c6eb3e4

Browse files
Tao Chenqmonnet
authored andcommitted
bpf: Add cookie to raw_tp bpf_link_info
After commit 68ca5d4eebb8 ("bpf: support BPF cookie in raw tracepoint (raw_tp, tp_btf) programs"), we can show the cookie in bpf_link_info like kprobe etc. Signed-off-by: Tao Chen <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 6977b71 commit c6eb3e4

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
@@ -6651,6 +6651,8 @@ struct bpf_link_info {
66516651
struct {
66526652
__aligned_u64 tp_name; /* in/out: tp_name buffer ptr */
66536653
__u32 tp_name_len; /* in/out: tp_name buffer len */
6654+
__u32 :32;
6655+
__u64 cookie;
66546656
} raw_tracepoint;
66556657
struct {
66566658
__u32 attach_type;

0 commit comments

Comments
 (0)