PERFORCE change 134444 for review
John Birrell
jb at FreeBSD.org
Tue Jan 29 21:42:39 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=134444
Change 134444 by jb at jb_freebsd1 on 2008/01/30 05:42:24
Add the kernel options #ifdefs which I missed before.
Affected files ...
.. //depot/projects/dtrace/src/sys/kern/kern_exec.c#25 edit
.. //depot/projects/dtrace/src/sys/kern/kern_exit.c#18 edit
.. //depot/projects/dtrace/src/sys/kern/kern_fork.c#28 edit
Differences ...
==== //depot/projects/dtrace/src/sys/kern/kern_exec.c#25 (text+ko) ====
@@ -672,12 +672,14 @@
textvp = p->p_textvp;
p->p_textvp = ndp->ni_vp;
+#ifdef KDTRACE_HOOKS
/*
* Tell the DTrace fasttrap provider about the exec if it
* has declared an interest.
*/
if (dtrace_fasttrap_exec)
dtrace_fasttrap_exec(p);
+#endif
/*
* Notify others that we exec'd, and clear the P_INEXEC flag
==== //depot/projects/dtrace/src/sys/kern/kern_exit.c#18 (text+ko) ====
@@ -460,12 +460,14 @@
p->p_xstat = rv;
p->p_xthread = td;
+#ifdef KDTRACE_HOOKS
/*
* Tell the DTrace fasttrap provider about the exit if it
* has declared an interest.
*/
if (dtrace_fasttrap_exit)
dtrace_fasttrap_exit(p);
+#endif
/*
* Notify interested parties of our demise.
==== //depot/projects/dtrace/src/sys/kern/kern_fork.c#28 (text+ko) ====
@@ -639,12 +639,14 @@
p2->p_pfsflags = p1->p_pfsflags;
}
+#ifdef KDTRACE_HOOKS
/*
* Tell the DTrace fasttrap provider about the new process
* if it has registered an interest.
*/
if (dtrace_fasttrap_fork)
dtrace_fasttrap_fork(p1, p2);
+#endif
/*
* This begins the section where we must prevent the parent
More information about the p4-projects
mailing list