Page MenuHomeFreeBSD

msgbuf: Allow microsecond granularity timestamps
ClosedPublic

Authored by imp on Fri, May 6, 5:33 PM.

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 OK
Unit
No Unit Test Coverage
Build Status
Buildable 45490
Build 42378: arc lint + arc unit

Event Timeline

imp requested review of this revision.Fri, May 6, 5:33 PM
This revision is now accepted and ready to land.Fri, May 6, 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.