PERFORCE change 100023 for review

John Birrell jb at FreeBSD.org
Mon Jun 26 05:32:20 UTC 2006


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

Change 100023 by jb at jb_freebsd2 on 2006/06/26 05:31:32

	Add a bit of missing code required for anonymous enablings. Without
	this you get the infamous "no such file" error. 8-)
	
	Remove the demo sdt probe in preparation for changing the SDT provider
	to use invops like Sun does.

Affected files ...

.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#15 edit

Differences ...

==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#15 (text+ko) ====

@@ -32,8 +32,6 @@
 	if (state == NULL)
 		return (EINVAL);
 
-	SDT_PROBE(dtrace, ioctl, entry, cmd, addr, 0, 0, 0);
-
 #if defined(__i386__)
 	/*
 	 * Check if any probe recursions have occurred. These are more
@@ -46,6 +44,11 @@
 	}
 #endif
 
+	if (state->dts_anon) {
+		ASSERT(dtrace_anon.dta_state == NULL);
+		state = state->dts_anon;
+	}
+
 	switch (cmd) {
 	case DTRACEIOC_AGGDESC: {
 		dtrace_aggdesc_t **paggdesc = (dtrace_aggdesc_t **) addr;


More information about the p4-projects mailing list