Searched refs:bpf_prog_attach_opts (Results 1 - 6 of 6) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtc_opts.c15 LIBBPF_OPTS(bpf_prog_attach_opts, opta);
41 err = bpf_prog_attach_opts(fd1, loopback, BPF_TCX_INGRESS, &opta);
68 err = bpf_prog_attach_opts(fd2, loopback, BPF_TCX_EGRESS, &opta);
113 LIBBPF_OPTS(bpf_prog_attach_opts, opta);
141 err = bpf_prog_attach_opts(fd1, loopback, target, &opta);
147 err = bpf_prog_attach_opts(fd2, loopback, target, &opta);
181 err = bpf_prog_attach_opts(fd3, loopback, target, &opta);
204 err = bpf_prog_attach_opts(fd4, loopback, target, &opta);
265 LIBBPF_OPTS(bpf_prog_attach_opts, opta);
293 err = bpf_prog_attach_opts(fd
[all...]
H A Dcgroup_attach_multi.c81 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, attach_opts);
197 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
204 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
212 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
220 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
228 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1,
235 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1,
H A Dlsm_cgroup.c67 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, attach_opts);
136 err = bpf_prog_attach_opts(post_create_prog_fd2, cgroup_fd,
H A Dtc_netkit.c387 LIBBPF_OPTS(bpf_prog_attach_opts, opta);
418 err = bpf_prog_attach_opts(fd1, ifindex, target, &opta);
450 err = bpf_prog_attach_opts(fd2, ifindex, target, &opta);
/linux-master/tools/lib/bpf/
H A Dbpf.h336 struct bpf_prog_attach_opts { struct
361 * @brief **bpf_prog_attach_opts()** attaches the BPF program corresponding to
372 LIBBPF_API int bpf_prog_attach_opts(int prog_fd, int target,
374 const struct bpf_prog_attach_opts *opts);
H A Dbpf.c632 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, opts,
636 return bpf_prog_attach_opts(prog_fd, target_fd, type, &opts);
639 int bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, function
640 const struct bpf_prog_attach_opts *opts)
647 if (!OPTS_VALID(opts, bpf_prog_attach_opts))

Completed in 171 milliseconds