bpf: Add cookie in fdinfo for tracing
authorTao Chen <chen.dylane@linux.dev>
Fri, 6 Jun 2025 16:58:17 +0000 (00:58 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 9 Jun 2025 23:45:17 +0000 (16:45 -0700)
commit380cb6dfa2bffea6fc14291e8f789b46dfb6a713
tree6f94e1e4593e716d489894c4be7384ea8d37716a
parentad954cbe084935b42e50d665fcbf2f8ac1df8c7e
bpf: Add cookie in fdinfo for tracing

Add cookie in fdinfo for tracing, the info as follows:

link_type: tracing
link_id: 6
prog_tag: 9dfdf8ef453843bf
prog_id: 35
attach_type: 25
target_obj_id: 1
target_btf_id: 60355
cookie: 9007199254740992

Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250606165818.3394397-4-chen.dylane@linux.dev
kernel/bpf/syscall.c