Lines Matching refs:child
278 char *grandparent = NULL, *parent = NULL, *child = NULL; in test_cgcore_invalid_domain() local
282 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); in test_cgcore_invalid_domain()
283 if (!parent || !child || !grandparent) in test_cgcore_invalid_domain()
292 if (cg_create(child)) in test_cgcore_invalid_domain()
298 if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n")) in test_cgcore_invalid_domain()
301 if (!cg_enter_current(child)) in test_cgcore_invalid_domain()
307 if (!clone_into_cgroup_run_wait(child)) in test_cgcore_invalid_domain()
321 if (child) in test_cgcore_invalid_domain()
322 cg_destroy(child); in test_cgcore_invalid_domain()
327 free(child); in test_cgcore_invalid_domain()
340 char *parent = NULL, *child = NULL; in test_cgcore_parent_becomes_threaded() local
343 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_parent_becomes_threaded()
344 if (!parent || !child) in test_cgcore_parent_becomes_threaded()
350 if (cg_create(child)) in test_cgcore_parent_becomes_threaded()
353 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded()
362 if (child) in test_cgcore_parent_becomes_threaded()
363 cg_destroy(child); in test_cgcore_parent_becomes_threaded()
366 free(child); in test_cgcore_parent_becomes_threaded()
379 char *parent = NULL, *child = NULL; in test_cgcore_no_internal_process_constraint_on_threads() local
388 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_no_internal_process_constraint_on_threads()
389 if (!parent || !child) in test_cgcore_no_internal_process_constraint_on_threads()
395 if (cg_create(child)) in test_cgcore_no_internal_process_constraint_on_threads()
401 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
415 if (child) in test_cgcore_no_internal_process_constraint_on_threads()
416 cg_destroy(child); in test_cgcore_no_internal_process_constraint_on_threads()
419 free(child); in test_cgcore_no_internal_process_constraint_on_threads()
431 char *parent = NULL, *child = NULL; in test_cgcore_top_down_constraint_enable() local
434 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_top_down_constraint_enable()
435 if (!parent || !child) in test_cgcore_top_down_constraint_enable()
441 if (cg_create(child)) in test_cgcore_top_down_constraint_enable()
444 if (!cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_enable()
450 if (child) in test_cgcore_top_down_constraint_enable()
451 cg_destroy(child); in test_cgcore_top_down_constraint_enable()
454 free(child); in test_cgcore_top_down_constraint_enable()
466 char *parent = NULL, *child = NULL; in test_cgcore_top_down_constraint_disable() local
469 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_top_down_constraint_disable()
470 if (!parent || !child) in test_cgcore_top_down_constraint_disable()
476 if (cg_create(child)) in test_cgcore_top_down_constraint_disable()
482 if (cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
491 if (child) in test_cgcore_top_down_constraint_disable()
492 cg_destroy(child); in test_cgcore_top_down_constraint_disable()
495 free(child); in test_cgcore_top_down_constraint_disable()
507 char *parent = NULL, *child = NULL; in test_cgcore_internal_process_constraint() local
510 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_internal_process_constraint()
511 if (!parent || !child) in test_cgcore_internal_process_constraint()
517 if (cg_create(child)) in test_cgcore_internal_process_constraint()
532 if (child) in test_cgcore_internal_process_constraint()
533 cg_destroy(child); in test_cgcore_internal_process_constraint()
536 free(child); in test_cgcore_internal_process_constraint()