Page MenuHomeFreeBSD

tty: Only print stack information on INVARIANT kernels
ClosedPublic

Authored by imp on Jun 23 2022, 5:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 23, 11:00 AM
Unknown Object (File)
Fri, Dec 19, 7:43 AM
Unknown Object (File)
Thu, Dec 11, 5:23 AM
Unknown Object (File)
Nov 25 2025, 9:54 PM
Unknown Object (File)
Nov 24 2025, 4:08 PM
Unknown Object (File)
Nov 23 2025, 12:17 AM
Unknown Object (File)
Nov 19 2025, 11:59 AM
Unknown Object (File)
Nov 17 2025, 8:29 AM
Subscribers

Details

Summary

In May 2021 in current@ there was a thread about the kstack
inclusion in ^T output. There seemed to be much support for the
default to not include this, unless an invariant kernel is used.
Implement this belatedly.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46095
Build 42984: arc lint + arc unit

Event Timeline

imp requested review of this revision.Jun 23 2022, 5:14 PM
imp created this revision.
imp edited the summary of this revision. (Show Details)
grembo added a subscriber: grembo.

Straightforward and balanced.

Thanks!

This revision is now accepted and ready to land.Jun 23 2022, 5:32 PM

The commit message suggests the entire functionality is axed, as opposed to compiled in but disabled by default.

jhb added a subscriber: jhb.

I would suggest rewording the body of the commit message to something like:

Adjust the default setting for kstack output in ^T to
include kstack output in debug kernels with INVARIANTS
and omit it in non-debug kernels.

The default setting can always be changed via the kern.tty_info_kstacks
sysctl/tunable.

This might address mjg's point?

I like jhb's wording and will use something like that in the commit message. It better represents what I'm doing here.

Also, MFC After 1 week is the plan.