Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1696641
| From | Mark Salyzyn <salyzyn@android.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] printk: Add boottime and real timestamps |
| Date | 2017-07-26 00:40 +0200 |
| Message-ID | <u7gEG-op-27@gated-at.bofh.it> (permalink) |
| References | <u76YH-2Fx-15@gated-at.bofh.it> <u76YI-2Fx-35@gated-at.bofh.it> <u77L4-3dw-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/25/2017 06:00 AM, Peter Zijlstra wrote: > On Tue, Jul 25, 2017 at 08:17:27AM -0400, Prarit Bhargava wrote: >> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug >> index 5b1662ec546f..6cd38a25f8ea 100644 >> --- a/lib/Kconfig.debug >> +++ b/lib/Kconfig.debug >> @@ -1,8 +1,8 @@ >> menu "printk and dmesg options" >> >> config PRINTK_TIME >> - int "Show timing information on printks (0-1)" >> - range 0 1 >> + int "Show timing information on printks (0-3)" >> + range 0 3 >> default "0" >> depends on PRINTK >> help >> @@ -13,7 +13,8 @@ config PRINTK_TIME >> The timestamp is always recorded internally, and exported >> to /dev/kmsg. This flag just specifies if the timestamp should >> be included, not that the timestamp is recorded. 0 disables the >> - timestamp and 1 uses the local clock. >> + timestamp and 1 uses the local clock, 2 uses the monotonic clock, and >> + 3 uses real clock. >> >> The behavior is also controlled by the kernel command line >> parameter printk.time=1. See Documentation/admin-guide/kernel-parameters.rst > > choice > prompt "printk default clock" > default PRIMTK_TIME_DISABLE > help > goes here > > config PRINTK_TIME_DISABLE > bool "Disabled" > help > goes here > > config PRINTK_TIME_LOCAL > bool "local clock" > help > goes here > > config PRINTK_TIME_MONO > bool "CLOCK_MONOTONIC" > help > goes here > > config PRINTK_TIME_REAL > bool "CLOCK_REALTIME" > help > goes here > > endchoice > > config PRINTK_TIME > int > default 0 if PRINTK_TIME_DISABLE > default 1 if PRINTK_TIME_LOCAL > default 2 if PRINTK_TIME_MONO > default 3 if PRINTK_TIME_REAL > > > Although I must strongly discourage using REALTIME, DST will make > untangling your logs an absolute nightmare. I would simply not provide > it. I agree with using select, ensures only valid values are landed. It does mean that CONFIG_PRINTK_TIME in-effect gets deprecated. REALTIME is always UTC in the kernel. What about BOOTTIME? -- Mark
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] printk: allow different timestamps for printk.time Prarit Bhargava <prarit@redhat.com> - 2017-07-25 14:20 +0200
[PATCH 2/2] printk: Add boottime and real timestamps Prarit Bhargava <prarit@redhat.com> - 2017-07-25 14:20 +0200
Re: [PATCH 2/2] printk: Add boottime and real timestamps Peter Zijlstra <peterz@infradead.org> - 2017-07-25 15:10 +0200
Re: [PATCH 2/2] printk: Add boottime and real timestamps Mark Salyzyn <salyzyn@android.com> - 2017-07-26 00:40 +0200
Re: [PATCH 2/2] printk: Add boottime and real timestamps Prarit Bhargava <prarit@redhat.com> - 2017-07-28 17:10 +0200
Re: [PATCH 2/2] printk: Add boottime and real timestamps Thomas Gleixner <tglx@linutronix.de> - 2017-07-28 18:30 +0200
Re: [PATCH 2/2] printk: Add boottime and real timestamps kbuild test robot <lkp@intel.com> - 2017-07-27 05:10 +0200
Re: [PATCH 1/2] printk: Make CONFIG_PRINTK_TIME an int "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-07-25 15:00 +0200
csiph-web