PERFORCE change 96113 for review

John Birrell jb at FreeBSD.org
Tue Apr 25 22:21:25 UTC 2006


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

Change 96113 by jb at 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));


More information about the p4-projects mailing list