Flip kern.tty_info_kstacks on by default

It's a useful debug aid for anyone using Ctrl-T today, and doesn't seem to be
widely known.  So, enable it out of the box to help people find it.

It's a tunable and sysctl, so if you don't like it, it's easy to disable
locally.

If people really hate it, we can always flip it back.

Reported by:	Daniel O'Connor
This commit is contained in:
Conrad Meyer 2020-06-13 03:04:40 +00:00
parent 9f1041dc2e
commit 508a6e84e7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362141

View File

@ -239,7 +239,7 @@ sbuf_tty_drain(void *a, const char *d, int len)
}
#ifdef STACK
static bool tty_info_kstacks = false;
static bool tty_info_kstacks = true;
SYSCTL_BOOL(_kern, OID_AUTO, tty_info_kstacks, CTLFLAG_RWTUN,
&tty_info_kstacks, 0,
"Enable printing kernel stack(9) traces on ^T (tty info)");