Date: Tue, 6 Jun 2006 23:34:51 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98710 for review Message-ID: <200606062334.k56NYp5w043148@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98710 Change 98710 by jb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606062334.k56NYp5w043148>