Lines Matching +full:dual +full:- +full:link
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
19 struct bpf_link link; member
56 static __u64 get_bpf_cookie(struct bpf_link *link) in get_bpf_cookie() argument
61 perf_link = container_of(link, struct bpf_perf_link___local, link); in get_bpf_cookie()
69 struct file *file = ctx->file; in iter()
70 struct task_struct *task = ctx->task; in iter()
89 file->f_op == &bpf_link_fops_poll) in iter()
98 if (file->f_op != fops) in iter()
102 e.pid = task->tgid; in iter()
103 e.id = get_obj_id(file->private_data, obj_type); in iter()
108 struct bpf_link *link = (struct bpf_link *) file->private_data; in iter() local
110 if (BPF_CORE_READ(link, type) == bpf_core_enum_value(enum bpf_link_type___local, in iter()
113 e.bpf_cookie = get_bpf_cookie(link); in iter()
118 task->group_leader->comm); in iter()
119 bpf_seq_write(ctx->meta->seq, &e, sizeof(e)); in iter()
124 char LICENSE[] SEC("license") = "Dual BSD/GPL";