Lines Matching refs:tracee

232 	    "Verify that ignoring (with SIG_IGN) " #sig " in tracee "	\
325 "Verify that masking (with SIG_BLOCK) " #sig " in tracee " \
1675 pid_t tracee, tracer, wpid;
1701 DPRINTF("Spawn tracee\n");
1703 tracee = atf_utils_fork();
1704 if (tracee == 0) {
1706 CHILD_FROM_PARENT("exit tracee", parent_tracee, msg);
1759 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
1760 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
1762 /* Wait for tracee and assert that it was stopped w/ SIGSTOP */
1764 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
1771 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
1781 /* Resume tracee with PT_CONTINUE */
1782 FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
1784 /* Inform parent that tracer has attached to tracee */
1787 /* Wait for parent to tell use that tracee should have exited */
1788 CHILD_FROM_PARENT("wait for tracee exit", parent_tracer, msg);
1790 /* Wait for tracee and assert that it exited */
1792 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
1799 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
1812 name[3] = tracee;
1824 /* Resume tracee with PT_CONTINUE */
1825 FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
1827 /* Wait for tracee and assert that it exited */
1829 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
1836 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
1900 FORKEE_ASSERT(ptrace(PT_KILL, tracee, NULL, 0) != -1);
1901 DPRINTF("Before calling %s() for the tracee\n", TWAIT_FNAME);
1903 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
1921 DPRINTF("Wait for the non-exited tracee process with %s()\n",
1924 wpid = TWAIT_GENERIC(tracee, NULL, WNOHANG), 0);
1926 DPRINTF("Wait for the tracer to attach to the tracee\n");
1929 DPRINTF("Resume the tracee and let it crash\n");
1930 PARENT_TO_CHILD("exit tracee", parent_tracee, msg);
1932 DPRINTF("Resume the tracer and let it detect crashed tracee\n");
1935 DPRINTF("Wait for tracee to finish its job and exit - calling %s()\n",
1937 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);