Searched refs:cg2 (Results 1 – 3 of 3) sorted by relevance
/linux-6.3-rc2/samples/bpf/ |
A D | test_current_task_under_cgroup_user.c | 17 int cg2 = -1, idx = 0, rc = 1; in main() local 60 cg2 = create_and_get_cgroup(CGROUP_PATH); in main() 62 if (cg2 < 0) in main() 65 if (bpf_map_update_elem(map_fd[0], &idx, &cg2, BPF_ANY)) { in main() 106 if (cg2 != -1) in main() 107 close(cg2); in main()
|
A D | test_cgrp2_array_pin.c | 27 const char *pinned_file = NULL, *cg2 = NULL; in main() local 46 cg2 = optarg; in main() 54 if (!cg2 || !pinned_file) { in main() 59 cg2_fd = open(cg2, O_RDONLY); in main() 62 cg2, strerror(errno), errno); in main()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | cgroup_attach_multi.c | 80 int cg1 = 0, cg2 = 0, cg3 = 0, cg4 = 0, cg5 = 0, key = 0; in serial_test_cgroup_attach_multi() local 100 cg2 = create_and_get_cgroup("/cg1/cg2"); in serial_test_cgroup_attach_multi() 101 if (CHECK_FAIL(cg2 < 0)) in serial_test_cgroup_attach_multi() 131 if (CHECK(bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 287 close(cg2); in serial_test_cgroup_attach_multi()
|
Completed in 6 milliseconds