Lines Matching defs:child

112  *       desired outcome (e.g. child killed, operation failed with ENOMEM)
113 * @testcase: selects how child allocates memory
115 * @lite: if non-zero, child makes only single TESTMEM+MB allocation
116 * if zero, child keeps allocating memory until it gets killed
118 * @retcode: expected return code of child process
119 * if matches child ret code, this function reports PASS,
121 * @allow_sigkill: if zero and child is killed, this function reports FAIL
122 * if non-zero, then if child is killed by SIGKILL
313 tst_res(TINFO, "child %d verifies memory content.", proc);
320 tst_res(TFAIL, "child %d has %c at "
344 tst_res(TINFO, "child %d continues...", child_num);
347 tst_res(TINFO, "child %d allocates %d MB filled with '%c'",
351 tst_res(TINFO, "child %d allocates %d MB filled with '%c'"
388 tst_res(TINFO, "child %d stops.", child_num);
400 tst_res(TINFO, "child %d stops.", child_num);
415 tst_res(TINFO, "child %d finished.", child_num);
418 static void stop_ksm_children(int *child, int num)
424 SAFE_WAITPID(child[k], &status, WUNTRACED);
426 tst_brk(TBROK, "child %d was not stopped", k);
430 static void resume_ksm_children(int *child, int num)
436 SAFE_KILL(child[k], SIGCONT);
443 int i, j, status, *child;
461 /* Since from third child, the data is same with the first child's */
471 child = SAFE_MALLOC(num * sizeof(int));
475 switch (child[i] = SAFE_FORK()) {
493 stop_ksm_children(child, num);
505 resume_ksm_children(child, num);
506 stop_ksm_children(child, num);
509 resume_ksm_children(child, num);
510 stop_ksm_children(child, num);
513 resume_ksm_children(child, num);
514 stop_ksm_children(child, num);
517 resume_ksm_children(child, num);
518 stop_ksm_children(child, num);
524 resume_ksm_children(child, num);
533 tst_res(TFAIL, "child exit status is %d",
596 /* Warning: *DO NOT* use this function in child */