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)
Sat, Nov 2, 3:12 AM
Unknown Object (File)
Tue, Oct 29, 8:17 PM
Unknown Object (File)
Thu, Oct 17, 3:31 AM
Unknown Object (File)
Oct 2 2024, 9:11 PM
Unknown Object (File)
Oct 2 2024, 9:11 PM
Unknown Object (File)
Oct 2 2024, 9:07 PM
Unknown Object (File)
Sep 28 2024, 1:55 PM
Unknown Object (File)
Sep 24 2024, 5:14 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.