Date: Tue, 20 Jun 2006 06:05:32 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 99659 for review Message-ID: <200606200605.k5K65WBJ074331@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=99659 Change 99659 by jb@jb_freebsd2 on 2006/06/20 06:04:45 Register and de-register the thread switch callback function for vtime. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_load.c#13 edit .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_unload.c#12 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_load.c#13 (text+ko) ==== @@ -38,6 +38,9 @@ /* Hang our hook for DTrace traps during probes. */ dtrace_instr_size_func = dtrace_instr_size; + /* Hang our hook for thread switches. */ + dtrace_vtime_switch_func = dtrace_vtime_switch; + /* * XXX This is a short term hack to avoid having to comment * out lots and lots of lock/unlock calls. ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_unload.c#12 (text+ko) ==== @@ -154,6 +154,13 @@ dtrace_mutex_destroy(&cpu_lock); dtrace_mutex_destroy(&mod_lock); + /* + * Reset our hook for thread switches, but ensure that vtime isn't + * active first. + */ + dtrace_vtime_active = 0; + dtrace_vtime_switch_func = NULL; + /* Reset our hook for DTrace traps during probes. */ dtrace_instr_size_func = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606200605.k5K65WBJ074331>