Home | History | Annotate | Download | only in sys

Lines Matching defs:tracer

95 	 * unrelated - attach from unrelated tracer reparented to initproc
102 pid_t tracee, tracer, wpid;
132 tracer = atf_utils_fork();
133 if (tracer == 0) {
136 tracer = atf_utils_fork();
137 if (tracer != 0)
158 /* Inform parent that tracer has attached to tracee */
159 CHILD_TO_PARENT("tracer ready", parent_tracer, msg);
171 DPRINTF("Before exiting of the tracer process\n");
176 DPRINTF("Wait for the tracer process (direct child) to exit "
179 wpid = TWAIT_GENERIC(tracer, &status, 0), tracer);
189 DPRINTF("Wait for the tracer to attach to the tracee\n");
190 PARENT_FROM_CHILD("tracer ready", parent_tracer, msg);
202 "Tracer must detect zombie first - calling %s()\n", tracee,
208 DPRINTF("Resume the tracer and let it detect exited tracee\n");
211 DPRINTF("Tell the tracer child should have exited\n");
213 DPRINTF("Wait for tracer to finish its job and exit - calling "
216 DPRINTF("Wait from tracer child to complete waiting for "
218 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(tracer, &status, 0),
219 tracer);
238 "Assert that tracer sees process termination before the parent");
286 "Assert that tracer sees process termination before the parent");
299 "Assert that tracer can attach to an unrelated stopped process");
378 "Assert that tracer parent can PT_ATTACH to its child");
391 "Assert that tracer parent can PT_ATTACH to its stopped child");
407 pid_t tracer, wpid;
413 DPRINTF("Spawn tracer\n");
415 tracer = atf_utils_fork();
416 if (tracer == 0) {
447 DPRINTF("Wait for the tracer to become ready\n");
455 DPRINTF("Allow the tracer to exit now\n");
458 DPRINTF("Wait for tracer to exit with %s()\n", TWAIT_FNAME);
460 wpid = TWAIT_GENERIC(tracer, &status, 0), tracer);
464 DPRINTF("Before calling %s() for tracer\n", TWAIT_FNAME);
466 wpid = TWAIT_GENERIC(tracer, &status, 0));
475 "Assert that tracer child can PT_ATTACH to its parent");
488 "Assert that tracer child can PT_ATTACH to its stopped parent");
538 pid_t parent, tracee, tracer, wpid;
610 tracer = atf_utils_fork();
611 if (tracer == 0) {
625 /* Inform parent that tracer has attached to tracee */
626 CHILD_TO_PARENT("tracer ready", parent_tracer, msg);
637 DPRINTF("Before exiting of the tracer process\n");
641 DPRINTF("Wait for the tracer to attach to the tracee\n");
642 PARENT_FROM_CHILD("tracer ready", parent_tracer, msg);
651 "Tracer must detect zombie first - calling %s()\n", TWAIT_FNAME);
655 DPRINTF("Tell the tracer child should have exited\n");
658 DPRINTF("Wait from tracer child to complete waiting for tracee\n");
659 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(tracer, &status, 0),
660 tracer);