PERFORCE change 96237 for review

John Birrell jb at FreeBSD.org
Thu Apr 27 20:41:47 UTC 2006


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

Change 96237 by jb at jb_freebsd2 on 2006/04/27 20:40:46

	This is a hack. We need a 'p_online' syscall to check processor status.

Affected files ...

.. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_subr.c#5 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_subr.c#5 (text) ====

@@ -490,10 +490,11 @@
 {
 	const dtrace_vector_t *v = dtp->dt_vector;
 
-printf("%s:%s(%d): DOODAD\n",__FUNCTION__,__FILE__,__LINE__);
-#ifdef DOODAD
 	if (v == NULL)
+#if defined(sun)
 		return (p_online(cpu, P_STATUS));
+#else
+		return (cpu == 0 ? 1:-1);
 #endif
 
 	return (v->dtv_status(dtp->dt_varg, cpu));


More information about the p4-projects mailing list