tslog: Add CTLFLAG_SKIP to sysctls
The timestamp logs are quite large (often much larger than all the other sysctls combined) so it's unlikely anyone will want to have them displayed by `sysctl -a`. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D34616
This commit is contained in:
parent
1dee7c74d1
commit
2406867f5b
@ -131,7 +131,8 @@ sysctl_debug_tslog(SYSCTL_HANDLER_ARGS)
|
|||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
SYSCTL_PROC(_debug, OID_AUTO, tslog, CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE,
|
SYSCTL_PROC(_debug, OID_AUTO, tslog,
|
||||||
|
CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE|CTLFLAG_SKIP,
|
||||||
0, 0, sysctl_debug_tslog, "", "Dump recorded event timestamps");
|
0, 0, sysctl_debug_tslog, "", "Dump recorded event timestamps");
|
||||||
|
|
||||||
MALLOC_DEFINE(M_TSLOGUSER, "tsloguser", "Strings used by userland tslog");
|
MALLOC_DEFINE(M_TSLOGUSER, "tsloguser", "Strings used by userland tslog");
|
||||||
@ -215,5 +216,6 @@ sysctl_debug_tslog_user(SYSCTL_HANDLER_ARGS)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SYSCTL_PROC(_debug, OID_AUTO, tslog_user,
|
SYSCTL_PROC(_debug, OID_AUTO, tslog_user,
|
||||||
CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE, 0, 0, sysctl_debug_tslog_user,
|
CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE|CTLFLAG_SKIP,
|
||||||
|
0, 0, sysctl_debug_tslog_user,
|
||||||
"", "Dump recorded userland event timestamps");
|
"", "Dump recorded userland event timestamps");
|
||||||
|
Loading…
Reference in New Issue
Block a user