PERFORCE change 99797 for review

John Birrell jb at FreeBSD.org
Thu Jun 22 05:22:28 UTC 2006


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

Change 99797 by jb at jb_freebsd2 on 2006/06/22 05:21:49

	Remove the DTrace module loading from this architecture specific
	file. I've found a better (machine independent) place.

Affected files ...

.. //depot/projects/dtrace/src/sys/boot/i386/libi386/i386_module.c#3 edit

Differences ...

==== //depot/projects/dtrace/src/sys/boot/i386/libi386/i386_module.c#3 (text+ko) ====

@@ -64,31 +64,5 @@
 	    printf("ACPI autoload failed - %s\n", strerror(error));
     }
 
-    /*
-     * XXX This stuff should be in 4th too, but who can understand
-     * how to load a module from a menu option? The support.4th
-     * code loads modules before the menu.
-     */
-    if (getenv("dtrace_load")) {
-	error = mod_load("cyclic", 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));
-    }
-
     return(0);
 }


More information about the p4-projects mailing list