PERFORCE change 98710 for review
John Birrell
jb at FreeBSD.org
Wed Jun 7 00:27:22 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=98710
Change 98710 by jb at jb_freebsd2 on 2006/06/06 23:34:09
Enable the chill action.
Affected files ...
.. //depot/projects/dtrace/src/cddl/test/dtrace/Makefile#17 edit
.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_action.c#4 edit
Differences ...
==== //depot/projects/dtrace/src/cddl/test/dtrace/Makefile#17 (text+ko) ====
@@ -388,6 +388,7 @@
${.CURDIR}/tst/common/funcs/tst.badfreopen.ksh \
${.CURDIR}/tst/common/funcs/tst.basename.d \
${.CURDIR}/tst/common/funcs/tst.bcopy.d \
+ ${.CURDIR}/tst/common/funcs/tst.chill.ksh \
${.CURDIR}/tst/common/funcs/tst.cleanpath.d \
${.CURDIR}/tst/common/funcs/tst.default.d \
${.CURDIR}/tst/common/funcs/tst.ftruncate.ksh \
@@ -1375,7 +1376,6 @@
${.CURDIR}/tst/common/dtraceUtil/tst.DestructWithProvider.d.ksh \
${.CURDIR}/tst/common/dtraceUtil/tst.ZeroModuleProbes.d.ksh \
${.CURDIR}/tst/common/dtraceUtil/tst.ZeroProviderProbes.d.ksh \
- ${.CURDIR}/tst/common/funcs/tst.chill.ksh \
${.CURDIR}/tst/common/inline/tst.InlineKinds.d \
${.CURDIR}/tst/common/printa/tst.stack.d \
==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_action.c#4 (text+ko) ====
@@ -137,11 +137,13 @@
static void
dtrace_action_chill(dtrace_mstate_t *mstate, hrtime_t val)
{
-printf("%s:%s(%d): DOODAD\n",__FUNCTION__,__FILE__,__LINE__);
-#ifdef DOODAD
hrtime_t now;
volatile uint16_t *flags;
+#if defined(sun)
cpu_t *cpu = CPU;
+#else
+ cpu_t *cpu = pcpu_find(curcpu);
+#endif
if (dtrace_destructive_disallow)
return;
@@ -179,7 +181,6 @@
*/
mstate->dtms_present &= ~DTRACE_MSTATE_TIMESTAMP;
cpu->cpu_dtrace_chilled += val;
-#endif
}
static void
More information about the p4-projects
mailing list