PERFORCE change 100036 for review
John Birrell
jb at FreeBSD.org
Mon Jun 26 06:25:32 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100036
Change 100036 by jb at jb_freebsd2 on 2006/06/26 06:25:30
Change the initialisation so that only the device and event stuff
happens when MOD_LOAD gets called (which is a lot later then when
the dtrace device needs to be initialised for anon enablings).
Affected files ...
.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_modevent.c#7 edit
Differences ...
==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_modevent.c#7 (text+ko) ====
@@ -30,14 +30,12 @@
switch (type) {
case MOD_LOAD:
- printf("dtrace -------------------------------------------------\n");
- if ((error = dtrace_load()) == 0) {
- /* Enable device cloning. */
- clone_setup(&dtrace_clones);
+
+ /* Enable device cloning. */
+ clone_setup(&dtrace_clones);
- /* Setup device cloning events. */
- eh_tag = EVENTHANDLER_REGISTER(dev_clone, dtrace_clone, 0, 1000);
- }
+ /* Setup device cloning events. */
+ eh_tag = EVENTHANDLER_REGISTER(dev_clone, dtrace_clone, 0, 1000);
break;
case MOD_UNLOAD:
More information about the p4-projects
mailing list