/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_override.c | 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 126 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 132 if (CHECK(!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() [all …]
|
H A D | cgroup_attach_multi.c | 155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 183 if (CHECK(bpf_prog_detach2(-1, cg5, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_multi() 198 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 205 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 213 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 221 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 229 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 236 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() [all …]
|
H A D | cgroup_link.c | 76 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 85 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 95 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 117 BPF_CGROUP_INET_EGRESS, BPF_F_ALLOW_MULTI); in test_cgroup_link() 135 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 142 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link() 158 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 176 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link() 178 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 249 BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
|
H A D | cgroup_attach_autodetach.c | 53 BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_autodetach() 59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in test_cgroup_attach_autodetach()
|
H A D | cg_storage_multi.c | 92 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_egress_only() 199 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 210 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 244 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 255 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
|
H A D | section_names.c | 51 {0, BPF_PROG_TYPE_CGROUP_SKB, BPF_CGROUP_INET_EGRESS}, 52 {0, BPF_CGROUP_INET_EGRESS},
|
H A D | load_bytes_relative.c | 47 err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, in test_load_bytes_relative()
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_override.c | 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 126 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 132 if (CHECK(!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() [all …]
|
H A D | cgroup_attach_multi.c | 155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 183 if (CHECK(bpf_prog_detach2(-1, cg5, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_multi() 198 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 205 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 213 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 221 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 229 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 236 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() [all …]
|
H A D | cgroup_link.c | 76 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 85 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 95 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 117 BPF_CGROUP_INET_EGRESS, BPF_F_ALLOW_MULTI); in test_cgroup_link() 135 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 142 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link() 158 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 176 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link() 178 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 249 BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
|
H A D | cgroup_attach_autodetach.c | 53 BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_autodetach() 59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in test_cgroup_attach_autodetach()
|
H A D | cg_storage_multi.c | 92 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_egress_only() 199 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 210 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 244 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 255 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
|
H A D | section_names.c | 51 {0, BPF_PROG_TYPE_CGROUP_SKB, BPF_CGROUP_INET_EGRESS}, 52 {0, BPF_CGROUP_INET_EGRESS},
|
H A D | load_bytes_relative.c | 47 err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, in test_load_bytes_relative()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_override.c | 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 126 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 132 if (CHECK(!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() [all …]
|
H A D | cgroup_attach_multi.c | 155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_multi() 183 if (CHECK(bpf_prog_detach2(-1, cg5, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_multi() 198 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 205 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 213 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 221 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 229 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() 236 BPF_CGROUP_INET_EGRESS, &attach_opts), in test_cgroup_attach_multi() [all …]
|
H A D | cgroup_link.c | 76 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 85 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 95 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in test_cgroup_link() 117 BPF_CGROUP_INET_EGRESS, BPF_F_ALLOW_MULTI); in test_cgroup_link() 135 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 142 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link() 158 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 176 BPF_CGROUP_INET_EGRESS, 0); in test_cgroup_link() 178 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link() 249 BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
|
H A D | cgroup_attach_autodetach.c | 53 BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_autodetach() 59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in test_cgroup_attach_autodetach()
|
H A D | cg_storage_multi.c | 92 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_egress_only() 199 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 210 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 244 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 255 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
|
H A D | section_names.c | 51 {0, BPF_PROG_TYPE_CGROUP_SKB, BPF_CGROUP_INET_EGRESS}, 52 {0, BPF_CGROUP_INET_EGRESS},
|
H A D | load_bytes_relative.c | 47 err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, in test_load_bytes_relative()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/ |
H A D | test_netcnt.c | 66 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main() 76 if (bpf_prog_query(cgroup_fd, BPF_CGROUP_INET_EGRESS, 0, NULL, NULL, in main()
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/ |
H A D | test_netcnt.c | 66 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main() 76 if (bpf_prog_query(cgroup_fd, BPF_CGROUP_INET_EGRESS, 0, NULL, NULL, in main()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/ |
H A D | test_netcnt.c | 66 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main() 76 if (bpf_prog_query(cgroup_fd, BPF_CGROUP_INET_EGRESS, 0, NULL, NULL, in main()
|
/dports/multimedia/libv4l/linux-5.13-rc2/samples/bpf/ |
H A D | test_cgrp2_attach.c | 155 type = BPF_CGROUP_INET_EGRESS; in main()
|