PERFORCE change 100594 for review

John Birrell jb at FreeBSD.org
Wed Jul 5 01:55:25 UTC 2006


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

Change 100594 by jb at jb_freebsd2 on 2006/07/05 01:54:23

	The statically defined trace implementation needs to change
	to match the way that Sun did. For the time being, just
	ensure that this file will compile on sun4v.

Affected files ...

.. //depot/projects/dtrace/src/sys/kern/kern_sdt.c#3 edit

Differences ...

==== //depot/projects/dtrace/src/sys/kern/kern_sdt.c#3 (text+ko) ====

@@ -130,17 +130,6 @@
 		ref->state = SDT_OFFSET_TOO_BIG;
 		return;
 	}
-/* XXX This is temporary code to help determine if this strategy is sound. */
-{
-u_int8_t *p1 = (u_int8_t *) ref->probe_start;
-u_int8_t *p2 = (u_int8_t *) ref->probe_end;
-printf("sdt:%s:%s:%s:\n", ref->mod, ref->func, ref->name);
-while (p1 < p2) {
-	printf("0x%02x ",*p1 & 0xff);
-	p1++;
-}
-printf("\n");
-}
 
 	/*
 	 * Point to the instruction after the start probe label.
@@ -175,7 +164,7 @@
 	 */
 	*p = ref->probe_disable;
 #else
-#error "Need machine dependent code!"
+	printf("%s: Need machine dependent code!\n",__FUNCTION__);
 #endif
 
 	sx_xlock(&sdt_sx);


More information about the p4-projects mailing list