Home
last modified time | relevance | path

Searched refs:bpf_link_create (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector_reattach.c127 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 …]
Duprobe_multi_test.c379 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
391 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
403 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
415 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
428 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
441 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
454 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
467 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
481 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
496 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in test_attach_api_fails()
[all …]
Dbpf_cookie.c149 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest()
165 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest()
506 fentry_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_FENTRY, &link_opts); in tracing_subtest()
513 fexit_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_FEXIT, &link_opts); in tracing_subtest()
520 fmod_ret_fd = bpf_link_create(prog_fd, 0, BPF_MODIFY_RETURN, &link_opts); in tracing_subtest()
558 lsm_fd = bpf_link_create(prog_fd, 0, BPF_LSM_MAC, &link_opts); in lsm_subtest()
608 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_RAW_TP, &link_opts); in tp_btf_subtest()
Dfexit_stress.c44 link_fd[i] = bpf_link_create(fexit_fd[i], 0, BPF_TRACE_FEXIT, NULL); in serial_test_fexit_stress()
Dperf_link.c51 link_fd = bpf_link_create(bpf_program__fd(skel->progs.handler), pfd, in serial_test_perf_link()
Dlsm_cgroup.c146 bind_link_fd = bpf_link_create(bind_prog_fd, cgroup_fd, in test_lsm_cgroup_functional()
169 bind_link_fd2 = bpf_link_create(bind_prog_fd2, cgroup_fd2, in test_lsm_cgroup_functional()
Drecursive_attach.c139 link_fd = bpf_link_create(tgt_prog_fd, 0, BPF_TRACE_FENTRY, NULL); in test_fentry_attach_btf_presence()
Dmodule_fentry_shadow.c115 link_fd[i] = bpf_link_create(prog_fd[i], 0, BPF_TRACE_FENTRY, NULL); in test_module_fentry_shadow()
Dxdp_attach.c133 err = bpf_link_create(fd_xdp, IFINDEX_LO, BPF_XDP, &opts); in test_xdp_attach_fail()
Dkprobe_multi_test.c74 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
80 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
Dunpriv_bpf_disabled.c129 link_fd = bpf_link_create(bpf_program__fd(skel->progs.handle_perf_event), perf_fd, in test_unpriv_bpf_disabled_positive()
Dsockopt.c1092 err = bpf_link_create(prog_fd, cgroup_fd, test->attach_type, NULL); in run_test()
Dsockmap_listen.c776 link_fd = bpf_link_create(prog_msg_verdict, sock_map, BPF_SK_MSG_VERDICT, NULL); in test_msg_redir_to_connected_with_link()
/linux-6.12.1/tools/lib/bpf/
Dfeatures.c357 link_fd = bpf_link_create(prog_fd, -1, BPF_PERF_EVENT, NULL); in probe_perf_link()
392 link_fd = bpf_link_create(prog_fd, -1, BPF_TRACE_UPROBE_MULTI, &link_opts); in probe_uprobe_multi_link()
422 link_fd = bpf_link_create(prog_fd, -1, BPF_TRACE_UPROBE_MULTI, &link_opts); in probe_uprobe_multi_link()
Dlibbpf.map152 bpf_link_create;
Dbpf.h443 LIBBPF_API int bpf_link_create(int prog_fd, int target_fd,
Dbpf.c724 int bpf_link_create(int prog_fd, int target_fd, in bpf_link_create() function
Dlibbpf.c10787 link_fd = bpf_link_create(prog_fd, pfd, BPF_PERF_EVENT, &link_opts); in bpf_program__attach_perf_event_opts()
11548 link_fd = bpf_link_create(prog_fd, 0, attach_type, &lopts); in bpf_program__attach_kprobe_multi_opts()
12038 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &lopts); in bpf_program__attach_uprobe_multi()
12582 pfd = bpf_link_create(prog_fd, 0, bpf_program__expected_attach_type(prog), &link_opts); in bpf_program__attach_btf_id()
12644 link_fd = bpf_link_create(prog_fd, target_fd, attach_type, opts); in bpf_program_attach_fd()
12814 link_fd = bpf_link_create(prog_fd, target_fd, BPF_TRACE_ITER, in bpf_program__attach_iter()
12860 link_fd = bpf_link_create(prog_fd, 0, BPF_NETFILTER, &lopts); in bpf_program__attach_netfilter()
12964 fd = bpf_link_create(map->fd, 0, BPF_STRUCT_OPS, NULL); in bpf_map__attach_struct_ops()
/linux-6.12.1/Documentation/bpf/
Dbpf_iterators.rst54 program is obtained using ``bpf_link_create()``, and the program callback is
77 * Obtain a ``link_fd`` to the BPF program by calling the ``bpf_link_create()``