Lines Matching defs:dtrace
403 err(EXIT_FAILURE, "Failed to fork to execute dtrace");
405 (void) execl("/usr/sbin/dtrace", "dtrace", "-q",
408 err(EXIT_FAILURE, "Failed to execute dtrace");
415 spoof_dtrace_wait(pid_t dtrace, int *stat)
422 while ((retpid = waitpid(dtrace, stat, WNOHANG)) == -1) {
535 pid_t dtrace;
543 dtrace = spoof_dtrace_launch();
564 if (spoof_dtrace_wait(dtrace, &stat) != 0) {
572 * case works properly. This should trip the dtrace probe.
576 if (spoof_dtrace_wait(dtrace, &stat) != 0 && WIFEXITED(stat) &&
580 if (kill(dtrace, SIGKILL) != 0) {
581 warn("Failed to kill dtrace child (pid %d)", dtrace);