Searched refs:cg_fd (Results 1 – 3 of 3) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_tcpbpf_user.c | 98 int cg_fd = -1; in main() local 105 cg_fd = create_and_get_cgroup(cg_path); in main() 106 if (!cg_fd) in main() 117 rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); in main() 156 bpf_prog_detach(cg_fd, BPF_CGROUP_SOCK_OPS); in main() 157 close(cg_fd); in main()
|
D | test_sockmap.c | 772 static int run_options(struct sockmap_options *options, int cg_fd, int test) in run_options() argument 799 err = bpf_prog_attach(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS, 0); in run_options() 1017 bpf_prog_detach2(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS); in run_options() 1549 static int __test_suite(int cg_fd, char *bpf_file) in __test_suite() argument 1551 int err, cleanup = cg_fd; in __test_suite() 1559 if (cg_fd < 0) { in __test_suite() 1565 cg_fd = create_and_get_cgroup(CG_PATH); in __test_suite() 1566 if (cg_fd < 0) { in __test_suite() 1569 cg_fd, optarg); in __test_suite() 1570 return cg_fd; in __test_suite() [all …]
|
/external/iproute2/ip/ |
D | ipvrf.c | 264 int rc = -1, cg_fd, prog_fd = -1; in vrf_configure_cgroup() local 266 cg_fd = open(path, O_DIRECTORY | O_RDONLY); in vrf_configure_cgroup() 267 if (cg_fd < 0) { in vrf_configure_cgroup() 290 if (bpf_prog_attach_fd(prog_fd, cg_fd, BPF_CGROUP_INET_SOCK_CREATE)) { in vrf_configure_cgroup() 298 close(cg_fd); in vrf_configure_cgroup()
|