PERFORCE change 95851 for review
John Birrell
jb at FreeBSD.org
Sat Apr 22 02:43:47 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95851
Change 95851 by jb at jb_freebsd2 on 2006/04/22 02:43:07
Don't include Sun's vmem implementation any more. All the DTrace was
using it for was to allocate resource IDs. We can do that a MUCH
simpler way than implementing vmem.
Start using the custom mutex implementation.
Include a source file which will contain the functions customised
to suit the FreeBSD kernel. Currently they are just hacks, but this
is where they will go when they become features rather than just hacks.
Affected files ...
.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#8 edit
Differences ...
==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#8 (text+ko) ====
@@ -65,7 +65,7 @@
#include <sys/unistd.h>
#include <machine/stdarg.h>
-#include <contrib/opensolaris/uts/common/sys/vmem.h>
+#include <cddl/dev/dtrace/dtrace_mutex.h>
#include <contrib/opensolaris/uts/common/sys/dtrace_impl.h>
#include <cddl/dev/dtrace/dtrace_hacks.h>
@@ -564,6 +564,9 @@
/* Temporary hacks during porting this code. */
#include <cddl/dev/dtrace/dtrace_hacks.c>
+/* FreeBSD kernel specific functions. */
+#include <cddl/dev/dtrace/dtrace_freebsd.c>
+
/* Common error handler. */
#include <cddl/dev/dtrace/cmn_err.c>
More information about the p4-projects
mailing list