Lines Matching full:child
69 * Create a child process that allocates and touches 100MB, then waits to be
70 * killed. Wait until the child is attached to the cgroup, kill all processes
97 /* wait for the child to enter cgroup */ in test_cgcore_destroy()
273 char *grandparent = NULL, *parent = NULL, *child = NULL; in test_cgcore_invalid_domain() local
277 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); in test_cgcore_invalid_domain()
278 if (!parent || !child || !grandparent) in test_cgcore_invalid_domain()
287 if (cg_create(child)) in test_cgcore_invalid_domain()
293 if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n")) in test_cgcore_invalid_domain()
296 if (!cg_enter_current(child)) in test_cgcore_invalid_domain()
302 if (!clone_into_cgroup_run_wait(child)) in test_cgcore_invalid_domain()
316 if (child) in test_cgcore_invalid_domain()
317 cg_destroy(child); in test_cgcore_invalid_domain()
322 free(child); in test_cgcore_invalid_domain()
329 * Test that when a child becomes threaded
335 char *parent = NULL, *child = NULL; in test_cgcore_parent_becomes_threaded() local
338 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_parent_becomes_threaded()
339 if (!parent || !child) in test_cgcore_parent_becomes_threaded()
345 if (cg_create(child)) in test_cgcore_parent_becomes_threaded()
348 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded()
357 if (child) in test_cgcore_parent_becomes_threaded()
358 cg_destroy(child); in test_cgcore_parent_becomes_threaded()
361 free(child); in test_cgcore_parent_becomes_threaded()
374 char *parent = NULL, *child = NULL; in test_cgcore_no_internal_process_constraint_on_threads() local
383 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_no_internal_process_constraint_on_threads()
384 if (!parent || !child) in test_cgcore_no_internal_process_constraint_on_threads()
390 if (cg_create(child)) in test_cgcore_no_internal_process_constraint_on_threads()
396 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
410 if (child) in test_cgcore_no_internal_process_constraint_on_threads()
411 cg_destroy(child); in test_cgcore_no_internal_process_constraint_on_threads()
414 free(child); in test_cgcore_no_internal_process_constraint_on_threads()
420 * Test that you can't enable a controller on a child if it's not enabled
426 char *parent = NULL, *child = NULL; in test_cgcore_top_down_constraint_enable() local
429 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_top_down_constraint_enable()
430 if (!parent || !child) in test_cgcore_top_down_constraint_enable()
436 if (cg_create(child)) in test_cgcore_top_down_constraint_enable()
439 if (!cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_enable()
445 if (child) in test_cgcore_top_down_constraint_enable()
446 cg_destroy(child); in test_cgcore_top_down_constraint_enable()
449 free(child); in test_cgcore_top_down_constraint_enable()
456 * if it's enabled in a child.
461 char *parent = NULL, *child = NULL; in test_cgcore_top_down_constraint_disable() local
464 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_top_down_constraint_disable()
465 if (!parent || !child) in test_cgcore_top_down_constraint_disable()
471 if (cg_create(child)) in test_cgcore_top_down_constraint_disable()
477 if (cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
486 if (child) in test_cgcore_top_down_constraint_disable()
487 cg_destroy(child); in test_cgcore_top_down_constraint_disable()
490 free(child); in test_cgcore_top_down_constraint_disable()
502 char *parent = NULL, *child = NULL; in test_cgcore_internal_process_constraint() local
505 child = cg_name(root, "cg_test_parent/cg_test_child"); in test_cgcore_internal_process_constraint()
506 if (!parent || !child) in test_cgcore_internal_process_constraint()
512 if (cg_create(child)) in test_cgcore_internal_process_constraint()
527 if (child) in test_cgcore_internal_process_constraint()
528 cg_destroy(child); in test_cgcore_internal_process_constraint()
531 free(child); in test_cgcore_internal_process_constraint()