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.
This commit is contained in:
parent
b40ffdceea
commit
3ce95b9c7b
@ -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_ARGS)
|
||||
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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user