Home
last modified time | relevance | path

Searched refs:link_create (Results 1 – 5 of 5) sorted by relevance

/kernel/bpf/
Dbpf_iter.c518 if (attr->link_create.target_fd || attr->link_create.flags) in bpf_iter_link_attach()
523 ulinfo = make_bpfptr(attr->link_create.iter_info, uattr.is_kernel); in bpf_iter_link_attach()
524 linfo_len = attr->link_create.iter_info_len; in bpf_iter_link_attach()
Dnet_namespace.c486 if (attr->link_create.flags) in netns_bpf_link_create()
489 type = attr->link_create.attach_type; in netns_bpf_link_create()
494 net = get_net_ns_by_fd(attr->link_create.target_fd); in netns_bpf_link_create()
Dsyscall.c3254 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()
[all …]
Dcgroup.c1280 if (attr->link_create.flags) in cgroup_bpf_link_attach()
1283 cgrp = cgroup_get_from_fd(attr->link_create.target_fd); in cgroup_bpf_link_attach()
1295 link->type = attr->link_create.attach_type; in cgroup_bpf_link_attach()
/kernel/trace/
Dbpf_trace.c2715 flags = attr->link_create.kprobe_multi.flags; in bpf_kprobe_multi_link_attach()
2719 uaddrs = u64_to_user_ptr(attr->link_create.kprobe_multi.addrs); in bpf_kprobe_multi_link_attach()
2720 usyms = u64_to_user_ptr(attr->link_create.kprobe_multi.syms); in bpf_kprobe_multi_link_attach()
2724 cnt = attr->link_create.kprobe_multi.cnt; in bpf_kprobe_multi_link_attach()
2733 ucookies = u64_to_user_ptr(attr->link_create.kprobe_multi.cookies); in bpf_kprobe_multi_link_attach()