git: 278e37006673 - main - freebsd-tips: Add fortune on kern.tty_info_kstacks

Michael Gmelin grembo at FreeBSD.org
Wed Jun 9 21:38:52 UTC 2021


The branch main has been updated by grembo (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=278e370066734a06f6b35e585568ac34969b1e84

commit 278e370066734a06f6b35e585568ac34969b1e84
Author:     Michael Gmelin <grembo at FreeBSD.org>
AuthorDate: 2021-05-21 16:10:26 +0000
Commit:     Michael Gmelin <grembo at FreeBSD.org>
CommitDate: 2021-06-09 21:35:38 +0000

    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 <debdrup at FreeBSD.org>
 %
+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 <grembo at FreeBSD.org>
+%


More information about the dev-commits-src-all mailing list