Bug 139425 - [kernel] [patch] Wrong behavior of KTR_VERBOSE
Summary: [kernel] [patch] Wrong behavior of KTR_VERBOSE
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2009-10-08 13:00 UTC by Alexander Zagrebin
Modified: 2017-12-31 22:34 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Zagrebin 2009-10-08 13:00:11 UTC
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:

 int    ktr_verbose = KTR_VERBOSE;
+int    ktr_verbose = 0;
 TUNABLE_INT("debug.ktr.verbose", &ktr_verbose);
 SYSCTL_INT(_debug_ktr, OID_AUTO, verbose, CTLFLAG_RW, &ktr_verbose, 0, "");

 #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
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:10 UTC
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