ktr(4) says, that KTR_VERBOSE option only sets the default value for the debug.ktr.verbose environment variable. But really debug.ktr.verbose is not available without this option. So behavior of the KTR_VERBOSE differs from behavior, described in the manual page. Fix: It depends :) Or /usr/src/sys/kern/kern_ktr.c or ktr(4) manual page have to be fixed May be: #ifdef KTR_VERBOSE int ktr_verbose = KTR_VERBOSE; +#else +int ktr_verbose = 0; +#endif TUNABLE_INT("debug.ktr.verbose", &ktr_verbose); SYSCTL_INT(_debug_ktr, OID_AUTO, verbose, CTLFLAG_RW, &ktr_verbose, 0, ""); -#endif #ifdef KTR_ALQ struct alq *ktr_alq;--doXCRsmKtiXKgAoBvNW75kqhSlO9FGhoLXohiJXt7qiZ3ujs Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- kern_ktr.c.orig 2009-09-30 09:31:37.000000000 +0400 +++ kern_ktr.c 2009-10-08 15:52:02.000000000 +0400 @@ -124,9 +124,11 @@ How-To-Repeat: Add "options KTR" to the kernel config; recompile kernel; reboot # sysctl debug.ktr.verbose sysctl: unknown oid 'debug.ktr.verbose' Add "options KTR_VERBOSE" to the kernel config; recompile kernel; reboot # sysctl debug.ktr.verbose debug.ktr.verbose: 0
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c5773d366ecc5271b9bd6e5506c00fb3520f19ae commit c5773d366ecc5271b9bd6e5506c00fb3520f19ae Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-04-05 16:23:51 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-04-05 16:29:44 +0000 ktr: Make debug.ktr.verbose available whenever KTR is configured This is more useful and matches the documentation. While here, make it settable as a tunable and add a sysctl description. PR: 139425 MFC after: 2 weeks sys/kern/kern_ktr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)