svn commit: r266101 - in stable/9/sys/cddl: contrib/opensolaris/uts/common/dtrace dev/dtrace
Mark Johnston
markj at FreeBSD.org
Thu May 15 00:50:58 UTC 2014
Author: markj
Date: Thu May 15 00:50:57 2014
New Revision: 266101
URL: http://svnweb.freebsd.org/changeset/base/266101
Log:
MFC r262665:
Expose a few DTrace parameters as sysctls under kern.dtrace and add
descriptions for several existing sysctls.
PR: 187027
Modified:
stable/9/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
stable/9/sys/cddl/dev/dtrace/dtrace_ioctl.c
stable/9/sys/cddl/dev/dtrace/dtrace_sysctl.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/cddl/contrib/opensolaris/ (props changed)
Modified: stable/9/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Thu May 15 00:48:05 2014 (r266100)
+++ stable/9/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Thu May 15 00:50:57 2014 (r266101)
@@ -300,7 +300,8 @@ static kmutex_t dtrace_meta_lock; /* me
#define PRIV_PROC_ZONE (1 << 5)
#define PRIV_ALL ~0
-SYSCTL_NODE(_debug, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace Information");
+SYSCTL_DECL(_debug_dtrace);
+SYSCTL_DECL(_kern_dtrace);
#endif
#if defined(sun)
Modified: stable/9/sys/cddl/dev/dtrace/dtrace_ioctl.c
==============================================================================
--- stable/9/sys/cddl/dev/dtrace/dtrace_ioctl.c Thu May 15 00:48:05 2014 (r266100)
+++ stable/9/sys/cddl/dev/dtrace/dtrace_ioctl.c Thu May 15 00:50:57 2014 (r266101)
@@ -23,7 +23,8 @@
*/
static int dtrace_verbose_ioctl;
-SYSCTL_INT(_debug_dtrace, OID_AUTO, verbose_ioctl, CTLFLAG_RW, &dtrace_verbose_ioctl, 0, "");
+SYSCTL_INT(_debug_dtrace, OID_AUTO, verbose_ioctl, CTLFLAG_RW,
+ &dtrace_verbose_ioctl, 0, "log DTrace ioctls");
#define DTRACE_IOCTL_PRINTF(fmt, ...) if (dtrace_verbose_ioctl) printf(fmt, ## __VA_ARGS__ )
Modified: stable/9/sys/cddl/dev/dtrace/dtrace_sysctl.c
==============================================================================
--- stable/9/sys/cddl/dev/dtrace/dtrace_sysctl.c Thu May 15 00:48:05 2014 (r266100)
+++ stable/9/sys/cddl/dev/dtrace/dtrace_sysctl.c Thu May 15 00:50:57 2014 (r266101)
@@ -22,6 +22,8 @@
*
*/
+SYSCTL_NODE(_debug, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace debug parameters");
+
int dtrace_debug = 0;
TUNABLE_INT("debug.dtrace.debug", &dtrace_debug);
SYSCTL_INT(_debug_dtrace, OID_AUTO, debug, CTLFLAG_RW, &dtrace_debug, 0, "");
@@ -78,5 +80,12 @@ sysctl_dtrace_providers(SYSCTL_HANDLER_A
}
SYSCTL_PROC(_debug_dtrace, OID_AUTO, providers, CTLTYPE_STRING | CTLFLAG_RD,
- 0, 0, sysctl_dtrace_providers, "A", "");
+ 0, 0, sysctl_dtrace_providers, "A", "available DTrace providers");
+
+SYSCTL_NODE(_kern, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace parameters");
+
+SYSCTL_LONG(_kern_dtrace, OID_AUTO, dof_maxsize, CTLFLAG_RW,
+ &dtrace_dof_maxsize, 0, "largest allowed DOF table");
+SYSCTL_LONG(_kern_dtrace, OID_AUTO, helper_actions_max, CTLFLAG_RW,
+ &dtrace_helper_actions_max, 0, "maximum number of allowed helper actions");
More information about the svn-src-stable-9
mailing list