Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1615845imj; Thu, 14 Feb 2019 09:12:17 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibpb7zoh/w0Q46ne/WgAxHIq1nXNzjmzQXSeYM/IL9XNtc5NmInO5RRil5DtNb3sXtaAzc1 X-Received: by 2002:a17:902:b20e:: with SMTP id t14mr2841775plr.97.1550164337389; Thu, 14 Feb 2019 09:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550164337; cv=none; d=google.com; s=arc-20160816; b=ryemiQd52i9646fv7674tMlAMiEDU7460eIgF241GJYjFpGGNgMQZDw+QPruuvQFv2 km6R1bPmoutK1oKaihsAjb14HhVttDffrr7/ZLfgjE+OHAETw7GK10xtR0aeqOxYuT02 m5vOOj3ibf+wDBLTbUVtA6HgMl0Je8NgobagFZrz9iI5Uyo+ZMjHrEbQdrYxC0bdVrhY YXIuJCXb+b8GzPa3M1Uwjp/tMISkAPhKYoHkJ317S8oFjKsY3/O0ZGafgXWWtvKye4/X /gJAgBj3swoJ6GGsNfpwwXj0k8BroFJLWz4NldRchc1zrJkkBp+MAQW1THZPImLsSnNX qhTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sFeRGVF9SEZzHV132nM8gDBzsW2uaCKJENAjN9hREd8=; b=OdrASzHPSbyDG+YCuHk9+vemJMKRyqjYF8vyqQSspKl4eXbee/n7m2ff7q1rdbPysU J7IHzGrBTefT0fLdc6kZcHB5yfye7/SIBn0A/DMWYPym2SVxiDgp9jKlQgr3pVFMf2SG hkH6vYdr5P/1e3TqU6HbDBK6EUaINyhEkV6ocXhgXKGES506A08191p6i3eD/6z7nvhk 4x6WfZkvFBHH58VW1oTT2UYi4ghym7nF+DksAs4K5sAGTeRE3IZe4oqRlYbCh524ad4l PUMqO3i3kzWjp0VQDIBi5GAgyJOUj39prwt8p3/ek7ig4rgl6PXJ5p4QlBWpcTupTUz4 xlaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u188si2954558pfb.232.2019.02.14.09.12.01; Thu, 14 Feb 2019 09:12:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436778AbfBNIs6 (ORCPT + 99 others); Thu, 14 Feb 2019 03:48:58 -0500 Received: from mx2.suse.de ([195.135.220.15]:33002 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388475AbfBNIs6 (ORCPT ); Thu, 14 Feb 2019 03:48:58 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4CC03AAA9; Thu, 14 Feb 2019 08:48:56 +0000 (UTC) Date: Thu, 14 Feb 2019 09:48:55 +0100 From: Petr Mladek To: Steven Rostedt Cc: xiang xiao , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Xiang Xiao Subject: Re: [PATCH] printk: add KERN_NOTIME to skip the timestamp Message-ID: <20190214084855.xyug7cmnrybdcmos@pathway.suse.cz> References: <1549995065-27597-1-git-send-email-xiaoxiang@xiaomi.com> <20190212144606.4b7cf0f8@gandalf.local.home> <20190213084741.5512307a@gandalf.local.home> <20190213093154.7af84743@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190213093154.7af84743@gandalf.local.home> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2019-02-13 09:31:54, Steven Rostedt wrote: > On Wed, 13 Feb 2019 22:00:04 +0800 > xiang xiao wrote: > > Here is a sample output with this patch: > > [ 10.991426] virtio_rpmsg_bus virtio1: rpmsg host is online > > [ 10.991443] remoteproc remoteproc1: registered virtio1 (type 7) > > [ 10.991450] remoteproc remoteproc1: remote processor > > f9210000.toppwr:sen-rproc is now up > > [ 10.993715] virtio_rpmsg_bus virtio1: creating channel > > rpmsg-ttySENSOR addr 0x1 > > [ 10.994606] virtio_rpmsg_bus virtio1: creating channel rpmsg-ttyGPS addr 0x2 > > [ 10.995236] virtio_rpmsg_bus virtio1: creating channel rpmsg-clk addr 0x3 > > [ 10.995702] virtio_rpmsg_bus virtio1: creating channel rpmsg-syslog addr 0x4 > > [ 10.996197] virtio_rpmsg_bus virtio1: creating channel rpmsg-rtc addr 0x5 > > [ 10.997297] virtio_rpmsg_bus virtio1: creating channel rpmsg-hostfs addr 0x6 > > [ 10.999842] virtio_rpmsg_bus virtio1: creating channel rpmsg-usrsock addr 0x7 > > [ 0.007680] sensor: NuttX sensor 7.28 e3c2ecb Feb 12 2019 16:53:49 > > arm song/banks > > ^^^^^^^^^^^^^ > > [ 11.918177] random: crng init done > > [ 12.567362] e2fsck: e2fsck 1.42.9 (28-Dec-2013) > > > > Without this patch: > > [ 10.991426] virtio_rpmsg_bus virtio1: rpmsg host is online > > [ 10.991443] remoteproc remoteproc1: registered virtio1 (type 7) > > [ 10.991450] remoteproc remoteproc1: remote processor > > f9210000.toppwr:sen-rproc is now up > > [ 10.993715] virtio_rpmsg_bus virtio1: creating channel > > rpmsg-ttySENSOR addr 0x1 > > [ 10.994606] virtio_rpmsg_bus virtio1: creating channel rpmsg-ttyGPS addr 0x2 > > [ 10.995236] virtio_rpmsg_bus virtio1: creating channel rpmsg-clk addr 0x3 > > [ 10.995702] virtio_rpmsg_bus virtio1: creating channel rpmsg-syslog addr 0x4 > > [ 10.996197] virtio_rpmsg_bus virtio1: creating channel rpmsg-rtc addr 0x5 > > [ 10.997297] virtio_rpmsg_bus virtio1: creating channel rpmsg-hostfs addr 0x6 > > [ 10.999842] virtio_rpmsg_bus virtio1: creating channel rpmsg-usrsock addr 0x7 > > [ 11.105345][ 0.007680] sensor: NuttX sensor 7.28 e3c2ecb Feb 12 > > 2019 16:53:49 arm song/banks > > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ 11.918177] random: crng init done > > [ 12.567362] e2fsck: e2fsck 1.42.9 (28-Dec-2013) > > > > Which one do you think better? > > Honestly, the one without the patch. > > Seriously, it also makes it easy to see where that message happened > with respect to the other printks. With your patch, we would have no > idea, and if I was a normal user, unaware of this patch, I would > probably submit a bug report claiming that something is wrong with the > timestamps. Just for record. I agree with Steven and Sergey here. The two clocks are too out of sync. "Randomly" and quietly replacing one with the other would cause more harm than good from my point of view. Best Regards, Petr