From 278e370066734a06f6b35e585568ac34969b1e84 Mon Sep 17 00:00:00 2001 From: Michael Gmelin Date: Fri, 21 May 2021 18:10:26 +0200 Subject: [PATCH] freebsd-tips: Add fortune on kern.tty_info_kstacks Add fortune explaining how to use `sysctl kern.tty_info_kstacks' to alter the output of ^T (tty info). Reviewed by: ceri Differential Revision: https://reviews.freebsd.org/D30388 --- usr.bin/fortune/datfiles/freebsd-tips | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr.bin/fortune/datfiles/freebsd-tips b/usr.bin/fortune/datfiles/freebsd-tips index eb7339cec698..cbbaff9eb84f 100644 --- a/usr.bin/fortune/datfiles/freebsd-tips +++ b/usr.bin/fortune/datfiles/freebsd-tips @@ -836,3 +836,10 @@ $ cu -s 9600 -l /dev/ttyU0 -- Daniel Ebdrup Jensen % +You can control kernel stack(9) traces on ^T (tty info) by setting +kern.tty_info_kstacks to 0 (off), 1 (on), or 2 (verbose), e.g.: + +# sysctl kern.tty_info_kstacks=2 + + -- Michael Gmelin +%