Searched refs:bpf_link_create (Results 1 – 12 of 12) sorted by relevance
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector_reattach.c | 127 link1 = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &opts); in test_link_create_link_create() 136 link2 = bpf_link_create(prog2, netns, BPF_FLOW_DISSECTOR, &opts); in test_link_create_link_create() 161 link = bpf_link_create(prog2, netns, BPF_FLOW_DISSECTOR, &opts); in test_prog_attach_link_create() 179 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &opts); in test_link_create_prog_attach() 202 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &opts); in test_link_create_prog_detach() 246 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &opts); in test_link_create_close_query() 264 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_no_old_prog() 289 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_replace_old_prog() 314 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_same_prog() 339 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_invalid_opts() [all …]
|
D | bpf_cookie.c | 148 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest() 164 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest() 430 fentry_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_FENTRY, &link_opts); in tracing_subtest() 437 fexit_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_FEXIT, &link_opts); in tracing_subtest() 444 fmod_ret_fd = bpf_link_create(prog_fd, 0, BPF_MODIFY_RETURN, &link_opts); in tracing_subtest() 481 lsm_fd = bpf_link_create(prog_fd, 0, BPF_LSM_MAC, &link_opts); in lsm_subtest()
|
D | fexit_stress.c | 38 link_fd[i] = bpf_link_create(fexit_fd[i], 0, BPF_TRACE_FEXIT, NULL); in serial_test_fexit_stress()
|
D | lsm_cgroup.c | 145 bind_link_fd = bpf_link_create(bind_prog_fd, cgroup_fd, in test_lsm_cgroup_functional() 168 bind_link_fd2 = bpf_link_create(bind_prog_fd2, cgroup_fd2, in test_lsm_cgroup_functional()
|
D | perf_link.c | 51 link_fd = bpf_link_create(bpf_program__fd(skel->progs.handler), pfd, in serial_test_perf_link()
|
D | kprobe_multi_test.c | 71 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api() 77 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
|
D | unpriv_bpf_disabled.c | 128 link_fd = bpf_link_create(bpf_program__fd(skel->progs.handle_perf_event), perf_fd, in test_unpriv_bpf_disabled_positive()
|
/Linux-v6.1/tools/lib/bpf/ |
D | libbpf.map | 152 bpf_link_create;
|
D | bpf.h | 329 LIBBPF_API int bpf_link_create(int prog_fd, int target_fd,
|
D | bpf.c | 673 int bpf_link_create(int prog_fd, int target_fd, in bpf_link_create() function
|
D | libbpf.c | 4719 link_fd = bpf_link_create(prog_fd, -1, BPF_PERF_EVENT, NULL); in probe_perf_link() 9724 link_fd = bpf_link_create(prog_fd, pfd, BPF_PERF_EVENT, &link_opts); in bpf_program__attach_perf_event_opts() 10295 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &lopts); in bpf_program__attach_kprobe_multi_opts() 11200 pfd = bpf_link_create(prog_fd, 0, bpf_program__expected_attach_type(prog), &link_opts); in bpf_program__attach_btf_id() 11263 link_fd = bpf_link_create(prog_fd, target_fd, attach_type, &opts); in bpf_program__attach_fd() 11353 link_fd = bpf_link_create(prog_fd, target_fd, BPF_TRACE_ITER, in bpf_program__attach_iter()
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | xsk.c | 514 link_fd = bpf_link_create(ctx->prog_fd, ctx->ifindex, BPF_XDP, &opts); in xsk_create_bpf_link() 746 link_fd = bpf_link_create(prog_fd, ifindex_lo, BPF_XDP, &opts); in xsk_probe_bpf_link()
|