Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734835

Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime timestamps

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Prarit Bhargava <prarit@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime timestamps
Date Tue, 19 Sep 2017 14:00:01 +0200
Message-ID <urpm1-4YB-1@gated-at.bofh.it> (permalink)
References <umkQ2-2tt-9@gated-at.bofh.it> <umkQ2-2tt-11@gated-at.bofh.it> <upYQW-3nL-29@gated-at.bofh.it> <upZN0-48G-7@gated-at.bofh.it> <uqFsR-6OB-3@gated-at.bofh.it>
Dmarc-Filter OpenDMARC Filter v1.3.2 mx1.redhat.com 09EED2F9469
Authentication-Results ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
Authentication-Results ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=prarit@redhat.com
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Scanned-By MIMEDefang 2.79 on 10.5.11.16
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 19 Sep 2017 11:52:37 +0000 (UTC)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>, Steven Rostedt <rostedt@goodmis.org>, John Stultz <john.stultz@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Stephen Boyd <sboyd@codeaurora.org>, Andrew Morton <akpm@linux-foundation.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>, Christoffer Dall <cdall@linaro.org>, Deepa Dinamani <deepa.kernel@gmail.com>, Ingo Molnar <mingo@kernel.org>, Joel Fernandes <joelaf@google.com>, Kees Cook <keescook@chromium.org>, Peter Zijlstra <peterz@infradead.org>, Geert Uytterhoeven <geert+renesas@glider.be>, "Luis R. Rodriguez" <mcgrof@kernel.org>, Nicholas Piggin <npiggin@gmail.com>, "Jason A. Donenfeld" <Jason@zx2c4.com>, Olof Johansson <olof@lixom.net>, Josh Poimboeuf <jpoimboe@redhat.com>, linux-doc@vger.kernel.org
X-Original-Date Tue, 19 Sep 2017 07:52:33 -0400
X-Original-Message-ID <5cd0541d-148c-b131-076a-910f8a900770@redhat.com>
X-Original-References <1504613201-23868-1-git-send-email-prarit@redhat.com> <1504613201-23868-4-git-send-email-prarit@redhat.com> <20170915132808.GL2908@pathway.suse.cz> <4cf75f3b-7d46-9e6c-3929-881f013f1c77@android.com> <20170917104634.GA442@tigerII.localdomain>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1734835

Show key headers only | View raw



On 09/17/2017 06:46 AM, Sergey Senozhatsky wrote:

> I'm a bit uncomfortable with the "breaks user space" part. since this
> is a strictly debugging option, would it be sufficient to store those
> extended timestamps as prefixes of every message?
> see (sorry for "self-quoting"):
> 	lkml.kernel.org/r/20170917062608.GA512@tigerII.localdomain
>

Sergey, I haven't forgotten about the above.  It's something
I'm going to look at after this initial patchset is done.

P.

> each message, thus, will be in the following format
> 
> [current header: loglevel, timestamp, etc] [extended printk data] message text
> 
> extended printk data can contain your monotonic/etc timestamps, and
> anything else.
> 
> and then it's up to you how do you grep the messages and process the
> extended data. but the point is - user space tools (journald, dmesg,
> etc.) stays intact. which is kinda nice.
> 
> so we can avoid that chicken and egg problem: we break user space
> by merging the patchset but user space people don't want to talk
> about any fixes until we break those tools.
> 
> 	-ss
> 

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime  timestamps Petr Mladek <pmladek@suse.com> - 2017-09-15 15:30 +0200
  Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime  timestamps Mark Salyzyn <salyzyn@android.com> - 2017-09-15 16:30 +0200
    Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime  timestamps Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2017-09-17 13:00 +0200
      Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime  timestamps Prarit Bhargava <prarit@redhat.com> - 2017-09-19 14:00 +0200
  Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime  timestamps Prarit Bhargava <prarit@redhat.com> - 2017-09-15 16:50 +0200

csiph-web