PERFORCE change 131208 for review

John Birrell jb at FreeBSD.org
Tue Dec 18 19:26:32 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=131208

Change 131208 by jb at jb_freebsd1 on 2007/12/19 03:26:08

	Sub out a bit more code that we don't use yet to avoid having to
	get a fasttrap.h for each of the other archs that FreeBSD supports.

Affected files ...

.. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_pid.c#9 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_pid.c#9 (text) ====

@@ -78,6 +78,7 @@
 }
 #endif
 
+#ifdef DOODAD
 static int
 dt_pid_error(dtrace_hdl_t *dtp, dt_pcb_t *pcb, dt_proc_t *dpr,
     fasttrap_probe_spec_t *ftp, dt_errtag_t tag, const char *fmt, ...)
@@ -104,6 +105,7 @@
 
 	return (1);
 }
+#endif
 
 #ifdef DOODAD
 static int
@@ -637,8 +639,10 @@
 	}
 
 	if (last == NULL || (*(++last) == '\0')) {
+#ifdef DOODAD
 		(void) dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_BADPROV,
 		    "'%s' is not a valid provider", pdp->dtpd_provider);
+#endif
 		return (-1);
 	}
 
@@ -646,8 +650,10 @@
 	pid = strtol(last, &end, 10);
 
 	if (errno != 0 || end == last || end[0] != '\0' || pid <= 0) {
+#ifdef DOODAD
 		(void) dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_BADPID,
 		    "'%s' does not contain a valid pid", pdp->dtpd_provider);
+#endif
 		return (-1);
 	}
 


More information about the p4-projects mailing list