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
F96225397: D35576.diff
Tue, Sep 24, 3:23 AM
F96104085: D35576.id107300.diff
Mon, Sep 23, 5:10 PM
Unknown Object (File)
Mon, Sep 9, 1:53 PM
Unknown Object (File)
Mon, Sep 9, 8:34 AM
Unknown Object (File)
Mon, Sep 9, 4:05 AM
Unknown Object (File)
Sun, Sep 8, 8:46 AM
Unknown Object (File)
Sat, Sep 7, 9:01 PM
Unknown Object (File)
Sat, Sep 7, 8:09 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
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.