lkml.org 
[lkml]   [2016]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/2 v6] printk, Add monotonic and real printk timestamps


On 03/08/2016 02:59 AM, Thomas Gleixner wrote:
> On Tue, 23 Feb 2016, Prarit Bhargava wrote:
>
>> This patchset adds monotonic and real printk timestamps. The first patch
>> changes CONFIG_PRINT_TIME from a bool to an int to allow for the additional
>> timestamps that are added in patch 2.
>>
>> Changes from v6: Petr Mladek pointed out that the current patch
>> fails to indicate to userspace programs which timestamp is being used.
>
> How is that solved?

Hi Thomas,

Userspace programs can now look at /sys/modules/printk/parameters/time which
will contain [0-3] for the timestamp clock.

The file is globally readable so it shouldn't cause any problems for userspace
programs:

[root@intel-wildcatpass-06 dummy-module]# ls -l /sys/module/printk/parameters/time
-rw-r--r--. 1 root root 4096 Mar 8 06:01 /sys/module/printk/parameters/time

P.

>
> Thanks,
>
> tglx
>

\
 
 \ /
  Last update: 2016-03-08 12:41    [W:0.068 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site