^T (tty info) stacks demo (FreeBSD)

by cem secret
FreeBSD ◆ xterm ◆ zsh 480 views

When a program is hung, pressing ^T (Ctrl + ‘t’) prints some information about the stuck program and raises SIGINFO. With this set of patches, we also gather a kernel stack and render it on the console.

It is inspired by a broader set of patches to OneFS that additionally print user stacks, including Python frames.