Skip to content

switch printk timestamp to use booting time

Lei Wen lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3time: create __get_monotonic_boottime for WARNless callsinclude/linux/time.h kernel/time/timekeeping.c+29 -50 replies
2/3timekeeping: move clocksource init to the early placeinclude/linux/time.h init/main.c kernel/time/timekeeping.c+17 -70 replies
3/3printk: using booting time as the timestampkernel/printk/printk.c+2 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] switch printk timestamp to use booting time

It is very common to have many processor to run over the same machine but run different OS actually, so that timestamp alignment is key to do the right debugging when find something wrong.

Linux adopt schedule clock stopped, so that printk timestamp would get during suspend period which break such assumption in the old days. So this patch set is supposed to recover such behavior again.

BTW, I am not sure whether we could add additional member in printk log structure, so that we could print out two piece of log with one including suspend time, while another not?

Lei Wen (3):
time: create __get_monotonic_boottime for WARNless calls
timekeeping: move clocksource init to the early place
printk: using booting time as the timestamp

 include/linux/time.h      |  2 ++
 init/main.c               |  1 +
 kernel/printk/printk.c    |  4 ++--
 kernel/time/timekeeping.c | 55 ++++++++++++++++++++++++++++++++++++-----------
 4 files changed, 48 insertions(+), 14 deletions(-)
Signature · 1 line
1.8.3.2