Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2008 00:01:12 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132274 for review
Message-ID:  <200801020001.m0201CCp087483@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=132274

Change 132274 by jb@jb_freebsd1 on 2008/01/02 00:00:35

	When booting with DTrace enabled, just use the 'dtraceall' module.
	It's dependencies will cause the set of DTrace modules to be loaded.
	This means that the boot loader doesn't have to change as new providers
	are added.

Affected files ...

.. //depot/projects/dtrace/src/sys/boot/common/boot.c#7 edit

Differences ...

==== //depot/projects/dtrace/src/sys/boot/common/boot.c#7 (text+ko) ====

@@ -107,27 +107,12 @@
     /* Check if DTrace is to be loaded prior to boot. */
     if (getenv("dtrace_boot")) {
 	/*
-	 * Load the DTrace modules. This would be better done
-	 * in 4th so that extra providers can be added easily.
+	 * Load the DTrace modules using the module that
+	 * depends on all other modules -- dtraceall.
 	 */
-	error = mod_load("cyclic", NULL, 0, NULL);
+	error = mod_load("dtraceall", NULL, 0, NULL);
 	if (error != 0)
-	    printf("cyclic autoload failed - %s\n", strerror(error));
-	error = mod_load("dtrace", NULL, 0, NULL);
-	if (error != 0)
-	    printf("dtrace autoload failed - %s\n", strerror(error));
-	error = mod_load("profile", NULL, 0, NULL);
-	if (error != 0)
-	    printf("profile autoload failed - %s\n", strerror(error));
-	error = mod_load("systrace", NULL, 0, NULL);
-	if (error != 0)
-	    printf("systrace autoload failed - %s\n", strerror(error));
-	error = mod_load("fbt", NULL, 0, NULL);
-	if (error != 0)
-	    printf("fbt autoload failed - %s\n", strerror(error));
-	error = mod_load("sdt", NULL, 0, NULL);
-	if (error != 0)
-	    printf("sdt autoload failed - %s\n", strerror(error));
+	    printf("dtraceall autoload failed - %s\n", strerror(error));
 
 	/*
 	 * Open the DTrace DOF file if it exists. Don't worry if


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801020001.m0201CCp087483>