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)
Mon, Jun 3, 1:50 PM
Unknown Object (File)
May 10 2024, 10:36 AM
Unknown Object (File)
May 7 2024, 11:34 AM
Unknown Object (File)
Apr 27 2024, 1:39 PM
Unknown Object (File)
Apr 22 2024, 9:19 PM
Unknown Object (File)
Apr 22 2024, 9:06 PM
Unknown Object (File)
Jan 14 2024, 6:14 PM
Unknown Object (File)
Jan 14 2024, 9:01 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.