Home
last modified time | relevance | path

Searched refs:bpf_prog_detach_opts (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_opts.c16 LIBBPF_OPTS(bpf_prog_detach_opts, optd); in test_ns_tc_opts_basic()
94 err = bpf_prog_detach_opts(fd2, loopback, BPF_TCX_EGRESS, &optd); in test_ns_tc_opts_basic()
101 err = bpf_prog_detach_opts(fd1, loopback, BPF_TCX_INGRESS, &optd); in test_ns_tc_opts_basic()
114 LIBBPF_OPTS(bpf_prog_detach_opts, optd); in test_tc_opts_before_target()
234 err = bpf_prog_detach_opts(fd4, loopback, target, &optd); in test_tc_opts_before_target()
239 err = bpf_prog_detach_opts(fd3, loopback, target, &optd); in test_tc_opts_before_target()
244 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_before_target()
249 err = bpf_prog_detach_opts(fd1, loopback, target, &optd); in test_tc_opts_before_target()
266 LIBBPF_OPTS(bpf_prog_detach_opts, optd); in test_tc_opts_after_target()
386 err = bpf_prog_detach_opts(fd4, loopback, target, &optd); in test_tc_opts_after_target()
[all …]
H A Dcgroup_mprog_opts.c21 LIBBPF_OPTS(bpf_prog_detach_opts, optd); in test_prog_attach_detach()
120 err = bpf_prog_detach_opts(fd4, cg, atype, &optd); in test_prog_attach_detach()
126 err = bpf_prog_detach_opts(fd3, cg, atype, &optd); in test_prog_attach_detach()
136 err = bpf_prog_detach_opts(fd2, cg, atype, &optd); in test_prog_attach_detach()
141 err = bpf_prog_detach_opts(fd1, cg, atype, &optd); in test_prog_attach_detach()
279 LIBBPF_OPTS(bpf_prog_detach_opts, optd); in test_preorder_prog_attach_detach()
360 err = bpf_prog_detach_opts(fd4, cg, atype, &optd); in test_preorder_prog_attach_detach()
365 err = bpf_prog_detach_opts(fd3, cg, atype, &optd); in test_preorder_prog_attach_detach()
370 err = bpf_prog_detach_opts(fd2, cg, atype, &optd); in test_preorder_prog_attach_detach()
375 err = bpf_prog_detach_opts(fd1, cg, atype, &optd); in test_preorder_prog_attach_detach()
H A Dnetns_cookie.c18 LIBBPF_OPTS(bpf_prog_detach_opts, optd); in test_netns_cookie()
91 err = bpf_prog_detach_opts(tc_fd, loopback, BPF_TCX_INGRESS, &optd); in test_netns_cookie()
/linux/tools/lib/bpf/
H A Dbpf.h353 struct bpf_prog_detach_opts { struct
391 LIBBPF_API int bpf_prog_detach_opts(int prog_fd, int target,
393 const struct bpf_prog_detach_opts *opts);
H A Dbpf.c678 int bpf_prog_detach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_detach_opts() function
679 const struct bpf_prog_detach_opts *opts) in bpf_prog_detach_opts()
686 if (!OPTS_VALID(opts, bpf_prog_detach_opts)) in bpf_prog_detach_opts()
717 return bpf_prog_detach_opts(0, target_fd, type, NULL); in bpf_prog_detach()
722 return bpf_prog_detach_opts(prog_fd, target_fd, type, NULL); in bpf_prog_detach2()
H A Dlibbpf.map397 bpf_prog_detach_opts;