[lkml]   [2017]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [GIT pull] printk updates for 4.15
On 11/14/2017 02:03 AM, Petr Mladek wrote:
> On Mon 2017-11-13 17:18:33, Linus Torvalds wrote:
>> On Mon, Nov 13, 2017 at 1:36 AM, Thomas Gleixner <> wrote:
>> Honestly, this just seems bogus to me, particularly since it's a single choice.
>> The *sane* model would be to
>> (a) continue to use the existing time that we always have
>> (local_clock()) in the printk timestamps, and don't confuse people
>> with the semantics of that field changing.
>> (b) just emit a "synchronization printk" every once in a while, which
>> is obviously also using the same standard time source, but the line
>> actually _says_ what the other time sources are.
> This was actually the original approach by Mark Salyzyn, see

Thanks for the vote of confidence :-) but we were holding back re
spinning that set until the ability to switch the primary timestamp got
accepted. (we were to use U suffix for realtime, B for boottime etc to
designate them).

Printing the other timebases during major disruptions
(suspend/resume/etc) was needed for our battery monitoring analysis
tools, and we only used them as synchronization markers as a secondary

But we _also_ had Android partners asking if it was possible to switch
the primary (dmesg) timestamp to one of boottime or realtime to aid in
triaging temporal issues. Doing so in the tool was sometimes too
inaccurate (~+/-20ms) even with help sniffing the periodic
synchronization/disruption prints. Switching the timebase for dmesg gave
us roughly 1000 times more comparative time precision which helps
immensely when trying to correlate and order the sequence of events in
user space and kernel activities.

-- Mark

 \ /
  Last update: 2017-11-14 16:57    [W:0.223 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site