Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2012 19:16:29 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240924 - head/sys/kern
Message-ID:  <201209251916.q8PJGTR4081178@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 



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