Lines Matching refs:link_create
3254 if (attr->link_create.flags) in bpf_perf_link_attach()
3257 perf_file = perf_event_get(attr->link_create.target_fd); in bpf_perf_link_attach()
3276 err = perf_event_set_bpf_prog(event, prog, attr->link_create.perf_event.bpf_cookie); in bpf_perf_link_attach()
4537 #define BPF_LINK_CREATE_LAST_FIELD link_create.kprobe_multi.cookies
4538 static int link_create(union bpf_attr *attr, bpfptr_t uattr) in link_create() function
4547 prog = bpf_prog_get(attr->link_create.prog_fd); in link_create()
4552 attr->link_create.attach_type); in link_create()
4561 if (attr->link_create.attach_type != BPF_PERF_EVENT) { in link_create()
4567 if (attr->link_create.attach_type != BPF_PERF_EVENT && in link_create()
4568 attr->link_create.attach_type != BPF_TRACE_KPROBE_MULTI) { in link_create()
4574 ptype = attach_type_to_prog_type(attr->link_create.attach_type); in link_create()
4594 attr->link_create.target_fd, in link_create()
4595 attr->link_create.target_btf_id, in link_create()
4596 attr->link_create.tracing.cookie); in link_create()
4600 if (attr->link_create.attach_type != prog->expected_attach_type) { in link_create()
4612 attr->link_create.target_fd, in link_create()
4613 attr->link_create.target_btf_id, in link_create()
4614 attr->link_create.tracing.cookie); in link_create()
4630 if (attr->link_create.attach_type == BPF_PERF_EVENT) in link_create()
5057 err = link_create(&attr, uattr); in __sys_bpf()