Author: gnn
Date: Tue Sep 25 19:16:28 2012
New Revision: 240924
URL: http://svn.freebsd.org/changeset/base/240924

Log:
  Change the module name for the I/O provider to "kernel" from
  "genunix"  This will requires us to modify externally created
  DTrace scripts but makes logical sense for FreeBSD.
  
  Requested by: rpaulo
  MFC after:    2 weeks

Modified:
  head/sys/kern/dtio_kdtrace.c

Modified: head/sys/kern/dtio_kdtrace.c
==============================================================================
--- head/sys/kern/dtio_kdtrace.c        Tue Sep 25 19:12:12 2012        
(r240923)
+++ head/sys/kern/dtio_kdtrace.c        Tue Sep 25 19:16:28 2012        
(r240924)
@@ -56,7 +56,7 @@ static dtrace_pattr_t dtio_attr = {
 { DTRACE_STABILITY_STABLE, DTRACE_STABILITY_STABLE, DTRACE_CLASS_COMMON },
 };
 
-static char    *genunix = "genunix";
+static char    *kernel = "kernel";
 
 /*
  * Name strings.
@@ -113,25 +113,25 @@ dtio_provide(void *arg, dtrace_probedesc
        if (desc != NULL)
                return;
 
-       if (dtrace_probe_lookup(dtio_id, genunix, NULL, 
+       if (dtrace_probe_lookup(dtio_id, kernel, NULL, 
                                dtio_start_str) == 0) {
-               dtio_start_id = dtrace_probe_create(dtio_id, genunix, NULL, 
+               dtio_start_id = dtrace_probe_create(dtio_id, kernel, NULL, 
                                                   dtio_start_str, 0, NULL);
        }
-       if (dtrace_probe_lookup(dtio_id, genunix, NULL, dtio_done_str) == 0) {
-               dtio_done_id = dtrace_probe_create(dtio_id, genunix, NULL, 
+       if (dtrace_probe_lookup(dtio_id, kernel, NULL, dtio_done_str) == 0) {
+               dtio_done_id = dtrace_probe_create(dtio_id, kernel, NULL, 
                                                   dtio_done_str, 0, NULL);
        }
-       if (dtrace_probe_lookup(dtio_id, genunix, NULL, 
+       if (dtrace_probe_lookup(dtio_id, kernel, NULL, 
                                dtio_wait_start_str) == 0) {
-               dtio_wait_start_id = dtrace_probe_create(dtio_id, genunix, 
+               dtio_wait_start_id = dtrace_probe_create(dtio_id, kernel, 
                                                         NULL, 
                                                         dtio_wait_start_str, 
                                                         0, NULL);
        }
-       if (dtrace_probe_lookup(dtio_id, genunix, NULL, 
+       if (dtrace_probe_lookup(dtio_id, kernel, NULL, 
                                dtio_wait_done_str) == 0) {
-               dtio_wait_done_id = dtrace_probe_create(dtio_id, genunix, NULL, 
+               dtio_wait_done_id = dtrace_probe_create(dtio_id, kernel, NULL, 
                                                   dtio_wait_done_str, 0, NULL);
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to