Lines Matching refs:parent
42 char *parent = NULL, *child = NULL, *parent2 = NULL, *child2 = NULL; in test_cpucg_subtree_control() local
46 parent = cg_name(root, "cpucg_test_0"); in test_cpucg_subtree_control()
47 if (!parent) in test_cpucg_subtree_control()
50 if (cg_create(parent)) in test_cpucg_subtree_control()
53 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cpucg_subtree_control()
56 child = cg_name(parent, "cpucg_test_child"); in test_cpucg_subtree_control()
91 cg_destroy(parent); in test_cpucg_subtree_control()
92 free(parent); in test_cpucg_subtree_control()
314 char *parent = NULL; in run_cpucg_weight_test() local
317 parent = cg_name(root, "cpucg_test_0"); in run_cpucg_weight_test()
318 if (!parent) in run_cpucg_weight_test()
321 if (cg_create(parent)) in run_cpucg_weight_test()
324 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in run_cpucg_weight_test()
328 children[i].cgroup = cg_name_indexed(parent, "cpucg_child", i); in run_cpucg_weight_test()
370 cg_destroy(parent); in run_cpucg_weight_test()
371 free(parent); in run_cpucg_weight_test()
485 char *parent = NULL, *child = NULL; in run_cpucg_nested_weight_test() local
500 parent = cg_name(root, "cpucg_test"); in run_cpucg_nested_weight_test()
501 child = cg_name(parent, "cpucg_child"); in run_cpucg_nested_weight_test()
502 if (!parent || !child) in run_cpucg_nested_weight_test()
505 if (cg_create(parent)) in run_cpucg_nested_weight_test()
507 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in run_cpucg_nested_weight_test()
522 ancestor = parent; in run_cpucg_nested_weight_test()
596 cg_destroy(parent); in run_cpucg_nested_weight_test()
597 free(parent); in run_cpucg_nested_weight_test()
719 char *parent, *child; in test_cpucg_max_nested() local
724 parent = cg_name(root, "cpucg_parent"); in test_cpucg_max_nested()
725 child = cg_name(parent, "cpucg_child"); in test_cpucg_max_nested()
726 if (!parent || !child) in test_cpucg_max_nested()
729 if (cg_create(parent)) in test_cpucg_max_nested()
732 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cpucg_max_nested()
738 if (cg_write(parent, "cpu.max", quota_buf)) in test_cpucg_max_nested()
773 cg_destroy(parent); in test_cpucg_max_nested()
774 free(parent); in test_cpucg_max_nested()