svn commit: r298587 - head/sys/cddl/dev/dtrace
Mark Johnston
markj at FreeBSD.org
Mon Apr 25 18:09:38 UTC 2016
Author: markj
Date: Mon Apr 25 18:09:36 2016
New Revision: 298587
URL: https://svnweb.freebsd.org/changeset/base/298587
Log:
Add a kern.dtrace.err_verbose sysctl to control dtrace_err_verbose.
When this flag is turned on, DOF and DIF validation errors are printed to
the kernel message buffer. This is useful for debugging.
Also remove the debug.dtrace.debug sysctl, which has no effect.
Modified:
head/sys/cddl/dev/dtrace/dtrace_sysctl.c
Modified: head/sys/cddl/dev/dtrace/dtrace_sysctl.c
==============================================================================
--- head/sys/cddl/dev/dtrace/dtrace_sysctl.c Mon Apr 25 17:32:08 2016 (r298586)
+++ head/sys/cddl/dev/dtrace/dtrace_sysctl.c Mon Apr 25 18:09:36 2016 (r298587)
@@ -22,11 +22,6 @@
*
*/
-SYSCTL_NODE(_debug, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace debug parameters");
-
-int dtrace_debug = 0;
-SYSCTL_INT(_debug_dtrace, OID_AUTO, debug, CTLFLAG_RWTUN, &dtrace_debug, 0, "");
-
/* Report registered DTrace providers. */
static int
sysctl_dtrace_providers(SYSCTL_HANDLER_ARGS)
@@ -78,11 +73,17 @@ sysctl_dtrace_providers(SYSCTL_HANDLER_A
return (error);
}
+SYSCTL_NODE(_debug, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace debug parameters");
+
SYSCTL_PROC(_debug_dtrace, OID_AUTO, providers, CTLTYPE_STRING | CTLFLAG_RD,
0, 0, sysctl_dtrace_providers, "A", "available DTrace providers");
SYSCTL_NODE(_kern, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace parameters");
+SYSCTL_INT(_kern_dtrace, OID_AUTO, err_verbose, CTLFLAG_RW,
+ &dtrace_err_verbose, 0,
+ "print DIF and DOF validation errors to the message buffer");
+
SYSCTL_INT(_kern_dtrace, OID_AUTO, memstr_max, CTLFLAG_RW, &dtrace_memstr_max,
0, "largest allowed argument to memstr(), 0 indicates no limit");
More information about the svn-src-head
mailing list