Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1352886
| From | Prarit Bhargava <prarit@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 0/2 v6] printk, Add monotonic and real printk timestamps |
| Date | 2016-03-08 12:10 +0100 |
| Message-ID | <ranGy-8tF-29@gated-at.bofh.it> (permalink) |
| References | <r5ppE-jj-9@gated-at.bofh.it> <rakSn-6EA-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH 0/2 v6] printk, Add monotonic and real printk timestamps Thomas Gleixner <tglx@linutronix.de> - 2016-03-08 09:10 +0100
Re: [PATCH 0/2 v6] printk, Add monotonic and real printk timestamps Prarit Bhargava <prarit@redhat.com> - 2016-03-08 12:10 +0100
Re: [PATCH 0/2 v6] printk, Add monotonic and real printk timestamps Petr Mladek <pmladek@suse.com> - 2016-03-10 11:10 +0100
Re: [PATCH 0/2 v6] printk, Add monotonic and real printk timestamps Thomas Gleixner <tglx@linutronix.de> - 2016-03-10 16:40 +0100
csiph-web