Lines Matching defs:tracee
267 "Verify that ignoring (with SIG_IGN) " #sig " in tracee " \
360 "Verify that masking (with SIG_BLOCK) " #sig " in tracee " \
1789 pid_t tracee, tracer, wpid;
1815 DPRINTF("Spawn tracee\n");
1817 tracee = atf_utils_fork();
1818 if (tracee == 0) {
1820 CHILD_FROM_PARENT("exit tracee", parent_tracee, msg);
1873 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
1874 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
1876 /* Wait for tracee and assert that it was stopped w/ SIGSTOP */
1878 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
1885 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
1895 /* Resume tracee with PT_CONTINUE */
1896 FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
1898 /* Inform parent that tracer has attached to tracee */
1901 /* Wait for parent to tell use that tracee should have exited */
1902 CHILD_FROM_PARENT("wait for tracee exit", parent_tracer, msg);
1904 /* Wait for tracee and assert that it exited */
1906 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
1913 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
1926 name[3] = tracee;
1938 /* Resume tracee with PT_CONTINUE */
1939 FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
1941 /* Wait for tracee and assert that it exited */
1943 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
1950 ptrace(PT_GET_SIGINFO, tracee, &info, sizeof(info)) != -1);
2038 FORKEE_ASSERT(ptrace(PT_KILL, tracee, NULL, 0) != -1);
2039 DPRINTF("Before calling %s() for the tracee\n", TWAIT_FNAME);
2041 wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
2059 DPRINTF("Wait for the non-exited tracee process with %s()\n",
2062 wpid = TWAIT_GENERIC(tracee, NULL, WNOHANG), 0);
2064 DPRINTF("Wait for the tracer to attach to the tracee\n");
2067 DPRINTF("Resume the tracee and let it crash\n");
2068 PARENT_TO_CHILD("exit tracee", parent_tracee, msg);
2070 DPRINTF("Resume the tracer and let it detect crashed tracee\n");
2073 DPRINTF("Wait for tracee to finish its job and exit - calling %s()\n",
2075 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);