From: Prarit Bhargava <prarit@redhat.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Mark Salyzyn <salyzyn@android.com>,
LKML <linux-kernel@vger.kernel.org>,
rjw@rjwysocki.net, len.brown@intel.com, pavel@ucw.cz,
linux-pm@vger.kernel.org, a.zummo@towertech.it,
alexandre.belloni@free-electrons.com, linux-rtc@vger.kernel.org,
andy.shevchenko@gmail.com, Mark Salyzyn <salyzyn@google.com>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Thierry Strudel <tstrudel@google.com>,
John Stultz <john.stultz@linaro.org>,
Richard Cochran <richardcochran@gmail.com>,
Nicolas Pitre <nicolas.pitre@linaro.org>,
Kees Cook <keescook@chromium.org>, Ingo Molnar <mingo@kernel.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH v2 1/4] time: rtc-lib: Add rtc_show_time(const char *prefix_msg)
Date: Wed, 19 Jul 2017 10:28:04 -0400 [thread overview]
Message-ID: <abb4ef30-06c2-18db-6c8d-c29be1b1fa3d@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1707191426060.2286@nanos>
On 07/19/2017 08:28 AM, Thomas Gleixner wrote:
> On Wed, 19 Jul 2017, Prarit Bhargava wrote:
>> On 07/19/2017 03:23 AM, Thomas Gleixner wrote:
>>> There is another option to remedy this and the dmesg tooling issues:
>>>
>>> Instead of switching the time stamps in dmesg to a different clock we might
>>> as well have an optional secondary timestamp. So instead of:
>>>
>>> [ 341.590930] wlan0: associated
>>>
>>> you would get:
>>>
>>> [ 341.590930] [ sec.usec] wlan0: associated
>>>
>>> where the second time stamp would be CLOCK_REALTIME/BOOTTIME.
>>>
>>> That should also solve Prarits problem, hmm?
>>
>> It would but I would prefer a single time stamp be printed than two. I think
>> two timestamps is adding confusion to the output from a end-users point of view.
>
> Fair enough. I came up with that idea when I looked at the old thread. The
> discussion about tools (e.g. dmesg) dried out at some point and looked
> unresolved.
tglx,
There were two outstanding issues with my patchset. The first, as you mention
above, is the issue with tooling. I will handle the chicken-and-egg issue with
the kernel modification and tooling. I will post patches for dmesg & systemd
once the kernel patchset lands in a "next" tree; other tools will have to be
patched as we find them.
The second issue is a sysfs stability and output issue that I have a question
on. Since I'm changing the value of print.time from a bool to an int, the
output of /sys/modules/printk/parameters/time would change from Y/N to 0-3. The
file is not listed in Documentation/ABI/stable so I think I can change it. Can
you confirm that this is the case? I wary of changing anything under sysfs and
I'm not sure who else would know if I can change the output of that file.
If it is the case that the output can be changed, then I'm going to suggest that
we allow, for example, human-readable format "printk.time=monotonic" along with
"printk.time=2" as kernel parameters. I would also like your thoughts on that idea.
If the file cannot be changed I will have to add an additional module parameter
to printk. Does "timestamp" sound okay to you? I will go with whatever you
suggest.
Thanks,
P.
next prev parent reply other threads:[~2017-07-19 14:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 21:19 [PATCH v2 1/4] time: rtc-lib: Add rtc_show_time(const char *prefix_msg) Mark Salyzyn
2017-07-18 21:52 ` Thomas Gleixner
2017-07-18 22:06 ` Mark Salyzyn
2017-07-18 22:35 ` Thomas Gleixner
2017-07-18 23:25 ` Mark Salyzyn
2017-07-19 7:23 ` Thomas Gleixner
2017-07-19 12:03 ` Prarit Bhargava
2017-07-19 12:28 ` Thomas Gleixner
2017-07-19 14:28 ` Prarit Bhargava [this message]
2017-07-19 18:13 ` Mark Salyzyn
2017-07-20 8:20 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abb4ef30-06c2-18db-6c8d-c29be1b1fa3d@redhat.com \
--to=prarit@redhat.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=andy.shevchenko@gmail.com \
--cc=john.stultz@linaro.org \
--cc=keescook@chromium.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=nicolas.pitre@linaro.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=pavel@ucw.cz \
--cc=peterz@infradead.org \
--cc=richardcochran@gmail.com \
--cc=rjw@rjwysocki.net \
--cc=salyzyn@android.com \
--cc=salyzyn@google.com \
--cc=tglx@linutronix.de \
--cc=tstrudel@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).