Page MenuHomeFreeBSD

msgbuf: Allow microsecond granularity timestamps
ClosedPublic

Authored by imp on May 6 2022, 5:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 3, 7:12 PM
Unknown Object (File)
Wed, May 3, 3:21 AM
Unknown Object (File)
Apr 8 2023, 4:57 PM
Unknown Object (File)
Mar 26 2023, 4:41 PM
Unknown Object (File)
Feb 28 2023, 6:22 PM
Unknown Object (File)
Feb 25 2023, 1:26 AM
Unknown Object (File)
Feb 21 2023, 9:46 AM
Unknown Object (File)
Feb 21 2023, 9:44 AM
Subscribers

Details

Reviewers
np
Group Reviewers
manpages
Summary

Today, kern.msgbuf_show_timestamp=1 will give 1 second granularity
timestamps on dmesg lines. When kern.msgbuf_show_timestamp=2, we'll
produce microsecond level graunlarity.
For example:
old (== 1):
[13] Dual Console: Video Primary, Serial Secondary
[14] lo0: link state changed to UP
[15] bxe0: NIC Link is Up, 10000 Mbps full duplex, Flow control: ON - receive & transmit
[15] bxe0: link state changed to UP
new (== 2):
[13.807015] Dual Console: Video Primary, Serial Secondary
[14.544150] lo0: link state changed to UP
[15.272044] bxe0: NIC Link is Up, 10000 Mbps full duplex, Flow control: ON - receive & transmit
[15.272052] bxe0: link state changed to UP

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.May 6 2022, 5:33 PM
This revision is now accepted and ready to land.May 6 2022, 5:39 PM

Nice! (How did I not know that kern.msgbuf_show_timestamp was a thing?!?)

Nice! (How did I not know that kern.msgbuf_show_timestamp was a thing?!?)

Because nobody has done something like https://reviews.freebsd.org/D35139 to document it?

In D35141#796582, @imp wrote:

Nice! (How did I not know that kern.msgbuf_show_timestamp was a thing?!?)

Because nobody has done something like https://reviews.freebsd.org/D35139 to document it?

LOL! Touché! :-D

Landed, but not automatically closed.