Lines Matching refs:root
29 static int test_pids_max(const char *root) in test_pids_max() argument
35 cg_pids = cg_name(root, "pids_test"); in test_pids_max()
64 cg_enter_current(root); in test_pids_max()
74 static int test_pids_events(const char *root) in test_pids_events() argument
80 cg_parent = cg_name(root, "pids_parent"); in test_pids_events()
120 cg_enter_current(root); in test_pids_events()
135 int (*fn)(const char *root);
145 char root[PATH_MAX]; in main() local
149 if (cg_find_unified_root(root, sizeof(root), NULL)) in main()
156 if (cg_read_strstr(root, "cgroup.controllers", "pids")) in main()
159 if (cg_read_strstr(root, "cgroup.subtree_control", "pids")) in main()
160 if (cg_write(root, "cgroup.subtree_control", "+pids")) in main()
164 switch (tests[i].fn(root)) { in main()