Date: Sat, 22 Apr 2006 02:43:46 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95851 for review Message-ID: <200604220243.k3M2hkZq085429@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95851 Change 95851 by jb@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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604220243.k3M2hkZq085429>