From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751813AbdI2MqR (ORCPT ); Fri, 29 Sep 2017 08:46:17 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57644 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbdI2MqP (ORCPT ); Fri, 29 Sep 2017 08:46:15 -0400 Date: Fri, 29 Sep 2017 14:46:12 +0200 From: Pavel Machek To: Prarit Bhargava Cc: linux-kernel@vger.kernel.org, Mark Salyzyn , Jonathan Corbet , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , John Stultz , Thomas Gleixner , Stephen Boyd , Andrew Morton , Greg Kroah-Hartman , "Paul E. McKenney" , Christoffer Dall , Deepa Dinamani , Ingo Molnar , Joel Fernandes , Kees Cook , Peter Zijlstra , Geert Uytterhoeven , "Luis R. Rodriguez" , Nicholas Piggin , "Jason A. Donenfeld" , Olof Johansson , Josh Poimboeuf , linux-doc@vger.kernel.org Subject: Re: [PATCH 3/3 v12] printk: Add monotonic, boottime, and realtime timestamps Message-ID: <20170929124612.GA32363@amd> References: <1505757060-2004-1-git-send-email-prarit@redhat.com> <1505757060-2004-4-git-send-email-prarit@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <1505757060-2004-4-git-send-email-prarit@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index b19c491cbc4e..e21b0c002d0f 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -8,12 +8,58 @@ config PRINTK_TIME > messages to be added to the output of the syslog() system > call and at the console. > =20 > +choice > + prompt "printk default clock timestamp" if PRINTK_TIME > + default PRINTK_TIME_LOCAL if PRINTK_TIME > + help > + This option is selected by setting one of > + PRINTK_TIME_[DISABLE|LOCAL|BOOT|MONO|REAL] and causes time stamps of > + the printk() messages to be added to the output of the syslog() > + system call and at the console. > + > 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. > =20 > The behavior is also controlled by the kernel command line > - parameter printk.time=3D1. See Documentation/admin-guide/kernel-param= eters.rst > + parameter printk.time. See > + Documentation/admin-guide/kernel-parameters.rst > + > +config PRINTK_TIME_LOCAL > + bool "Local Clock" > + help > + Selecting this option causes the time stamps of printk() to be > + stamped with the unadjusted hardware clock. > + > +config PRINTK_TIME_BOOT > + bool "Boot Time Clock" > + help > + Selecting this option causes the time stamps of printk() to be > + stamped with the adjusted boottime clock. > + > +config PRINTK_TIME_MONO > + bool "Monotonic Clock" > + help > + Selecting this option causes the time stamps of printk() to be > + stamped with the adjusted monotonic clock. > + > +config PRINTK_TIME_REAL > + bool "Real Time Clock" > + help > + Selecting this option causes the time stamps of printk() to be > + stamped with the adjusted realtime clock (UTC). > +endchoice > + > +config PRINTK_TIME_TYPE > + int > + depends on PRINTK > + range 0 4 > + default 0 if !PRINTK_TIME > + default 1 if PRINTK_TIME_LOCAL > + default 2 if PRINTK_TIME_BOOT > + default 3 if PRINTK_TIME_MONO > + default 4 if PRINTK_TIME_REAL > + > =20 > config CONSOLE_LOGLEVEL_DEFAULT > int "Default console loglevel (1-15)" Come on, you don't need to ask user just to set default value to be overriden by command line. This is not nearly important enough. Drop it. You can still use CONFIG_CMDLINE=3D"...". Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlnOQJQACgkQMOfwapXb+vKcNgCdFu6jrNLnYUFqoFqbqFqCfOAd 1/oAoIunbgDwfkq7/KbgOzXcnqW/dQjG =iiKO -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--