diff options
author | Tao Chen <chen.dylane@linux.dev> | 2025-06-07 00:58:14 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2025-06-09 16:45:17 -0700 |
commit | c7beb48344d2ea0f3f1869b078309dbeb2ed4c96 (patch) | |
tree | 424bdfae6c6ce20641a8a71adc50a3df1ebe146e /kernel/bpf/syscall.c | |
parent | f3effef2e8976c6b0edfd849129417ad3b5eab00 (diff) |
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 <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250606165818.3394397-1-chen.dylane@linux.dev
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 0c267f37775b..85e080c3333d 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -3416,6 +3416,7 @@ static int bpf_tracing_link_fill_link_info(const struct bpf_link *link, container_of(link, struct bpf_tracing_link, link.link); info->tracing.attach_type = tr_link->attach_type; + info->tracing.cookie = tr_link->link.cookie; bpf_trampoline_unpack_key(tr_link->trampoline->key, &info->tracing.target_obj_id, &info->tracing.target_btf_id); |