Searched refs:bpf_prog_attach_opts (Results 1 – 7 of 7) sorted by relevance
/linux-6.8/tools/testing/selftests/bpf/prog_tests/ |
D | tc_opts.c | 15 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in serial_test_tc_opts_basic() 41 err = bpf_prog_attach_opts(fd1, loopback, BPF_TCX_INGRESS, &opta); in serial_test_tc_opts_basic() 68 err = bpf_prog_attach_opts(fd2, loopback, BPF_TCX_EGRESS, &opta); in serial_test_tc_opts_basic() 113 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_before_target() 141 err = bpf_prog_attach_opts(fd1, loopback, target, &opta); in test_tc_opts_before_target() 147 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_before_target() 181 err = bpf_prog_attach_opts(fd3, loopback, target, &opta); in test_tc_opts_before_target() 204 err = bpf_prog_attach_opts(fd4, loopback, target, &opta); in test_tc_opts_before_target() 265 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in test_tc_opts_after_target() 293 err = bpf_prog_attach_opts(fd1, loopback, target, &opta); in test_tc_opts_after_target() [all …]
|
D | cgroup_attach_multi.c | 81 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()
|
D | lsm_cgroup.c | 67 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, attach_opts); in test_lsm_cgroup_functional() 136 err = bpf_prog_attach_opts(post_create_prog_fd2, cgroup_fd, in test_lsm_cgroup_functional()
|
D | tc_netkit.c | 387 LIBBPF_OPTS(bpf_prog_attach_opts, opta); in serial_test_tc_netkit_multi_opts_target() 418 err = bpf_prog_attach_opts(fd1, ifindex, target, &opta); in serial_test_tc_netkit_multi_opts_target() 450 err = bpf_prog_attach_opts(fd2, ifindex, target, &opta); in serial_test_tc_netkit_multi_opts_target()
|
/linux-6.8/tools/lib/bpf/ |
D | bpf.h | 321 struct bpf_prog_attach_opts { struct 357 LIBBPF_API int bpf_prog_attach_opts(int prog_fd, int target, 359 const struct bpf_prog_attach_opts *opts);
|
D | bpf.c | 625 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, opts, in bpf_prog_attach() 629 return bpf_prog_attach_opts(prog_fd, target_fd, type, &opts); in bpf_prog_attach() 632 int bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_attach_opts() function 633 const struct bpf_prog_attach_opts *opts) in bpf_prog_attach_opts() 640 if (!OPTS_VALID(opts, bpf_prog_attach_opts)) in bpf_prog_attach_opts()
|
D | libbpf.map | 155 bpf_prog_attach_opts;
|