Date: Tue, 25 Apr 2006 22:21:24 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96113 for review Message-ID: <200604252221.k3PMLOFk016919@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96113 Change 96113 by jb@jb_freebsd2 on 2006/04/25 22:21:03 Woo-hoo we've got a trace enabled at last. Just a simple 'dtrace -n BEGIN', but that's the DTrace equivalent of getting a 'hello world' program to compile for the first time. Remember doing that? I can. Just. Now we're up to the sleep loop waiting for some feedback from the dtrace device. That means it's time for the nitty-gritties (TM). Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_work.c#6 edit Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_work.c#6 (text) ==== @@ -75,6 +75,7 @@ earliest = *((hrtime_t *)a) + interval; } +printf("%s:%s(%d):\n",__FUNCTION__,__FILE__,__LINE__); (void) pthread_mutex_lock(&dph->dph_lock); now = gethrtime(); @@ -196,7 +197,6 @@ if (err == -1 && (errno != ENOTTY || dtp->dt_vector == NULL)) return (dt_set_errno(dtp, errno)); -printf("%s: ioctl DTRACEIOC_GO\n",__FUNCTION__); if (dt_ioctl(dtp, DTRACEIOC_GO, &dtp->dt_beganon) == -1) { if (errno == EACCES) return (dt_set_errno(dtp, EDT_DESTRUCTIVE));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604252221.k3PMLOFk016919>