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)
Thu, Apr 11, 3:24 PM
Unknown Object (File)
Thu, Apr 11, 2:53 PM
Unknown Object (File)
Mon, Apr 1, 10:49 PM
Unknown Object (File)
Jan 11 2024, 11:50 AM
Unknown Object (File)
Jan 1 2024, 12:41 PM
Unknown Object (File)
Dec 20 2023, 8:15 AM
Unknown Object (File)
Dec 20 2023, 2:59 AM
Unknown Object (File)
Nov 17 2023, 9:12 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.