Lines Matching refs:tracee

433 	pid_t tracee, tracer, wpid;
445 DPRINTF("Spawn tracee\n");
448 tracee = atf_utils_fork();
449 if (tracee == 0) {
451 CHILD_TO_PARENT("tracee ready", parent_tracee, msg);
460 CHILD_TO_PARENT("tracee exit", parent_tracee, msg);
468 PARENT_FROM_CHILD("tracee ready", parent_tracee, msg);
474 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
475 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
477 /* Wait for tracee and assert that it was stopped w/ SIGSTOP */
479 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
484 "tracee");
486 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
498 FORKEE_ASSERT(ptrace(PT_LWPINFO, tracee, &lwp, sizeof(lwp))
509 "tracee\n");
510 FORKEE_ASSERT(ptrace(PT_LWPINFO, tracee, &lwp, sizeof(lwp))
514 "tracee\n");
517 /* Resume tracee with PT_CONTINUE */
518 FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
520 /* Inform parent that tracer has attached to tracee */
526 /* Wait for tracee and assert that it raised a signal */
528 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
535 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
551 FORKEE_ASSERT(ptrace(PT_LWPINFO, tracee, &lwp,
565 "tracee\n");
566 FORKEE_ASSERT(ptrace(PT_LWPINFO, tracee, &lwp, sizeof(lwp))
575 FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, SIGKILL)
578 /* Wait for tracee and assert that it exited */
580 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
588 DPRINTF("Wait for the tracer to attach to the tracee\n");
591 DPRINTF("Resume the tracee and spawn threads\n");
594 DPRINTF("Resume the tracee and let it exit\n");
595 PARENT_FROM_CHILD("tracee exit", parent_tracee, msg);
607 DPRINTF("Wait for tracee to finish its job and exit - calling %s()\n",
609 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(tracee, &status, WNOHANG),
610 tracee);