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 >