Date: Thu, 27 Apr 2006 20:41:46 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96237 for review Message-ID: <200604272041.k3RKfk2P079860@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96237 Change 96237 by jb@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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604272041.k3RKfk2P079860>