Lines Matching full:child

72  * Create a child process that allocates and touches 100MB, then waits to be
73 * killed. Wait until the child is attached to the cgroup, kill all processes
100 /* wait for the child to enter cgroup */ in test_cgcore_destroy()
276 char *grandparent = NULL, *parent = NULL, *child = NULL; in test_cgcore_invalid_domain() local
280 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); in test_cgcore_invalid_domain()
281 if (!parent || !child || !grandparent) in test_cgcore_invalid_domain()
290 if (cg_create(child)) in test_cgcore_invalid_domain()
296 if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n")) in test_cgcore_invalid_domain()
299 if (!cg_enter_current(child)) in test_cgcore_invalid_domain()
305 if (!clone_into_cgroup_run_wait(child)) in test_cgcore_invalid_domain()
319 if (child) in test_cgcore_invalid_domain()
320 cg_destroy(child); in test_cgcore_invalid_domain()
325 free(child); in test_cgcore_invalid_domain()
332 * Test that when a child becomes threaded
338 char *parent = NULL, *child = NULL; in test_cgcore_parent_becomes_threaded() local
341 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_parent_becomes_threaded()
342 if (!parent || !child) in test_cgcore_parent_becomes_threaded()
348 if (cg_create(child)) in test_cgcore_parent_becomes_threaded()
351 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded()
360 if (child) in test_cgcore_parent_becomes_threaded()
361 cg_destroy(child); in test_cgcore_parent_becomes_threaded()
364 free(child); in test_cgcore_parent_becomes_threaded()
377 char *parent = NULL, *child = NULL; in test_cgcore_no_internal_process_constraint_on_threads() local
386 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_no_internal_process_constraint_on_threads()
387 if (!parent || !child) in test_cgcore_no_internal_process_constraint_on_threads()
393 if (cg_create(child)) in test_cgcore_no_internal_process_constraint_on_threads()
399 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
413 if (child) in test_cgcore_no_internal_process_constraint_on_threads()
414 cg_destroy(child); in test_cgcore_no_internal_process_constraint_on_threads()
417 free(child); in test_cgcore_no_internal_process_constraint_on_threads()
423 * Test that you can't enable a controller on a child if it's not enabled
429 char *parent = NULL, *child = NULL; in test_cgcore_top_down_constraint_enable() local
432 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_top_down_constraint_enable()
433 if (!parent || !child) in test_cgcore_top_down_constraint_enable()
439 if (cg_create(child)) in test_cgcore_top_down_constraint_enable()
442 if (!cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_enable()
448 if (child) in test_cgcore_top_down_constraint_enable()
449 cg_destroy(child); in test_cgcore_top_down_constraint_enable()
452 free(child); in test_cgcore_top_down_constraint_enable()
459 * if it's enabled in a child.
464 char *parent = NULL, *child = NULL; in test_cgcore_top_down_constraint_disable() local
467 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_top_down_constraint_disable()
468 if (!parent || !child) in test_cgcore_top_down_constraint_disable()
474 if (cg_create(child)) in test_cgcore_top_down_constraint_disable()
480 if (cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
489 if (child) in test_cgcore_top_down_constraint_disable()
490 cg_destroy(child); in test_cgcore_top_down_constraint_disable()
493 free(child); in test_cgcore_top_down_constraint_disable()
505 char *parent = NULL, *child = NULL; in test_cgcore_internal_process_constraint() local
508 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_internal_process_constraint()
509 if (!parent || !child) in test_cgcore_internal_process_constraint()
515 if (cg_create(child)) in test_cgcore_internal_process_constraint()
530 if (child) in test_cgcore_internal_process_constraint()
531 cg_destroy(child); in test_cgcore_internal_process_constraint()
534 free(child); in test_cgcore_internal_process_constraint()