Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2006 01:55:23 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 100594 for review
Message-ID:  <200607050155.k651tNV2033602@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100594

Change 100594 by jb@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607050155.k651tNV2033602>