Re: [PATCH v2] printk: Add boottime and real timestamps

From: John Stultz
Date: Tue Aug 01 2017 - 13:40:55 EST

On Tue, Aug 1, 2017 at 10:35 AM, Prarit Bhargava <prarit@xxxxxxxxxx> wrote:
> On 08/01/2017 01:00 PM, John Stultz wrote:
>> Is there a reason your not also adding PRINTK_TIME_BOOT here (which to
>> me would be more generally useful then REAL or MONO)?
> REAL has been useful to me in debug cases where events on the system were timed
> to the wall clock (ex cron job running at 3AM). I hadn't really thought much
> about using BOOT TBH because MONO seemed to work just fine.
> Mark Salyzyn, did you want BOOT or MONO?

I know Mark has specific formatting needs, so I'm not going to speak
for him, but BOOT is actually a nice improvement over MONO, since it
includes suspend time, and avoids inconsistencies due to userspace
tweaking the time, which REALTIME has. So for debugging suspend
related issues and being able to understand how much time a system has
spent in suspend vs not it would be quite useful.