Home
last modified time | relevance | path

Searched refs:cg_parent (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/cgroup/
H A Dtest_pids.c77 char *cg_parent = NULL, *cg_child = NULL; in test_pids_events() local
80 cg_parent = cg_name(root, "pids_parent"); in test_pids_events()
81 cg_child = cg_name(cg_parent, "pids_child"); in test_pids_events()
82 if (!cg_parent || !cg_child) in test_pids_events()
85 if (cg_create(cg_parent)) in test_pids_events()
87 if (cg_write(cg_parent, "cgroup.subtree_control", "+pids")) in test_pids_events()
92 if (cg_write(cg_parent, "pids.max", "2")) in test_pids_events()
113 if (cg_read_key_long(cg_parent, "pids.events", "max ") != 1) in test_pids_events()
123 if (cg_parent) in test_pids_events()
124 cg_destroy(cg_parent); in test_pids_events()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt_multi.c7 static int run_getsockopt_test(struct sockopt_multi *obj, int cg_parent, in run_getsockopt_test() argument
70 cg_parent); in run_getsockopt_test()
158 static int run_setsockopt_test(struct sockopt_multi *obj, int cg_parent, in run_setsockopt_test() argument
221 cg_parent); in run_setsockopt_test()
255 int cg_parent = -1, cg_child = -1; in test_sockopt_multi() local
259 cg_parent = test__join_cgroup("/parent"); in test_sockopt_multi()
260 if (!ASSERT_GE(cg_parent, 0, "join_cgroup /parent")) in test_sockopt_multi()
277 ASSERT_OK(run_getsockopt_test(obj, cg_parent, cg_child, sock_fd), "getsockopt_test"); in test_sockopt_multi()
278 ASSERT_OK(run_setsockopt_test(obj, cg_parent, cg_child, sock_fd), "setsockopt_test"); in test_sockopt_multi()
284 close(cg_parent); in test_sockopt_multi()