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, Apr 22, 9:19 PM
Unknown Object (File)
Mon, Apr 22, 9:06 PM
Unknown Object (File)
Jan 14 2024, 6:14 PM
Unknown Object (File)
Jan 14 2024, 9:01 AM
Unknown Object (File)
Dec 20 2023, 1:38 AM
Unknown Object (File)
Nov 18 2023, 12:08 AM
Unknown Object (File)
Nov 15 2023, 11:36 PM
Unknown Object (File)
Nov 9 2023, 7:19 PM
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.