PERFORCE change 132614 for review
John Birrell
jb at FreeBSD.org
Sat Jan 5 22:58:35 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132614
Change 132614 by jb at jb_freebsd1 on 2008/01/06 06:58:21
Add the global variables and it might be helpful to actually
include the option header to check if the option is enabled.
A bit sub-optimal otherwise. Heh.
Affected files ...
.. //depot/projects/dtrace/src/sys/kern/sched_4bsd.c#30 edit
.. //depot/projects/dtrace/src/sys/kern/sched_ule.c#23 edit
Differences ...
==== //depot/projects/dtrace/src/sys/kern/sched_4bsd.c#30 (text+ko) ====
@@ -36,6 +36,7 @@
__FBSDID("$FreeBSD: src/sys/kern/sched_4bsd.c,v 1.112 2007/12/15 23:13:31 jeff Exp $");
#include "opt_hwpmc_hooks.h"
+#include "opt_kdtrace.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -61,6 +62,8 @@
#ifdef KDTRACE_HOOKS
#include <sys/dtrace_bsd.h>
+int dtrace_vtime_active;
+dtrace_vtime_switch_func_t dtrace_vtime_switch_func;
#endif
/*
==== //depot/projects/dtrace/src/sys/kern/sched_ule.c#23 (text+ko) ====
@@ -39,6 +39,7 @@
__FBSDID("$FreeBSD: src/sys/kern/sched_ule.c,v 1.220 2007/12/21 23:30:18 wkoszek Exp $");
#include "opt_hwpmc_hooks.h"
+#include "opt_kdtrace.h"
#include "opt_sched.h"
#include <sys/param.h>
@@ -70,6 +71,8 @@
#ifdef KDTRACE_HOOKS
#include <sys/dtrace_bsd.h>
+int dtrace_vtime_active;
+dtrace_vtime_switch_func_t dtrace_vtime_switch_func;
#endif
#include <machine/cpu.h>
More information about the p4-projects
mailing list