Date: Wed, 19 Dec 2007 03:26:31 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 131208 for review Message-ID: <200712190326.lBJ3QVnk008129@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131208 Change 131208 by jb@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712190326.lBJ3QVnk008129>