Home
last modified time | relevance | path

Searched refs:bpf_prog_attach_opts (Results 1 – 11 of 11) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dcgroup_mprog_opts.c20 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_prog_attach_detach()
54 err = bpf_prog_attach_opts(fd1, cg, atype, &opta); in test_prog_attach_detach()
66 err = bpf_prog_attach_opts(fd2, cg, atype, &opta); in test_prog_attach_detach()
79 err = bpf_prog_attach_opts(fd3, cg, atype, &opta); in test_prog_attach_detach()
91 err = bpf_prog_attach_opts(fd4, cg, atype, &opta); in test_prog_attach_detach()
278 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_preorder_prog_attach_detach()
305 err = bpf_prog_attach_opts(fd1, cg, atype, &opta); in test_preorder_prog_attach_detach()
317 err = bpf_prog_attach_opts(fd2, cg, atype, &opta); in test_preorder_prog_attach_detach()
329 err = bpf_prog_attach_opts(fd3, cg, atype, &opta); in test_preorder_prog_attach_detach()
342 err = bpf_prog_attach_opts(fd3, cg, atype, &opta); in test_preorder_prog_attach_detach()
[all …]
A Dtc_opts.c15 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_ns_tc_opts_basic()
113 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_before_target()
265 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_after_target()
456 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_revision_target()
567 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_chain_classic()
668 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_replace_target()
875 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_invalid_target()
1028 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_prepend_target()
1168 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_append_target()
1308 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_dev_cleanup_target()
[all …]
A Dcgroup_preorder.c9 LIBBPF_OPTS(bpf_prog_attach_opts, opts); in run_getsockopt_test()
33 err = bpf_prog_attach_opts(prog_c_fd, cg_child, prog_c_atype, &opts); in run_getsockopt_test()
41 err = bpf_prog_attach_opts(prog_c2_fd, cg_child, prog_c2_atype, &opts); in run_getsockopt_test()
65 err = bpf_prog_attach_opts(prog_p_fd, cg_parent, prog_p_atype, &opts); in run_getsockopt_test()
73 err = bpf_prog_attach_opts(prog_p2_fd, cg_parent, prog_p2_atype, &opts); in run_getsockopt_test()
A Dcgroup_mprog_ordering.c9 LIBBPF_OPTS(bpf_prog_attach_opts, opts); in run_getsockopt_test()
27 err = bpf_prog_attach_opts(prog_p_fd, cg_parent, prog_p_atype, &opts); in run_getsockopt_test()
37 err = bpf_prog_attach_opts(prog_p2_fd, cg_parent, prog_p2_atype, &opts); in run_getsockopt_test()
A Dcgroup_attach_multi.c81 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, attach_opts); in serial_test_cgroup_attach_multi()
197 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
204 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
212 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
220 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
228 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
235 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
A Dnetns_cookie.c17 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_netns_cookie()
46 err = bpf_prog_attach_opts(tc_fd, loopback, BPF_TCX_INGRESS, &opta); in test_netns_cookie()
A Dlsm_cgroup.c63 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, attach_opts); in test_lsm_cgroup_functional()
132 err = bpf_prog_attach_opts(post_create_prog_fd2, cgroup_fd, in test_lsm_cgroup_functional()
A Dtc_netkit.c432 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in serial_test_tc_netkit_multi_opts_target()
464 err = bpf_prog_attach_opts(fd1, ifindex, target, &opta); in serial_test_tc_netkit_multi_opts_target()
496 err = bpf_prog_attach_opts(fd2, ifindex, target, &opta); in serial_test_tc_netkit_multi_opts_target()
/tools/lib/bpf/
A Dbpf.h339 struct bpf_prog_attach_opts { struct
375 LIBBPF_API int bpf_prog_attach_opts(int prog_fd, int target,
377 const struct bpf_prog_attach_opts *opts);
A Dlibbpf.map155 bpf_prog_attach_opts;
A Dbpf.c633 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, opts, in bpf_prog_attach()
637 return bpf_prog_attach_opts(prog_fd, target_fd, type, &opts); in bpf_prog_attach()
640 int bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_attach_opts() function
641 const struct bpf_prog_attach_opts *opts) in bpf_prog_attach_opts()
648 if (!OPTS_VALID(opts, bpf_prog_attach_opts)) in bpf_prog_attach_opts()

Completed in 52 milliseconds