From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754475AbcAHJFw (ORCPT ); Fri, 8 Jan 2016 04:05:52 -0500 Received: from www.linutronix.de ([62.245.132.108]:60192 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754555AbcAHJFq (ORCPT ); Fri, 8 Jan 2016 04:05:46 -0500 Date: Fri, 8 Jan 2016 10:04:44 +0100 (CET) From: Thomas Gleixner To: Petr Mladek cc: Prarit Bhargava , linux-kernel@vger.kernel.org, John Stultz , Xunlei Pang , Baolin Wang , Andrew Morton , Greg Kroah-Hartman , Tejun Heo , Peter Hurley , Vasily Averin , Joe Perches Subject: Re: [PATCH 2/2] printk, Add printk.clock kernel parameter In-Reply-To: <20160107155236.GO3178@pathway.suse.cz> Message-ID: References: <1452085234-10667-1-git-send-email-prarit@redhat.com> <1452085234-10667-3-git-send-email-prarit@redhat.com> <20160107145702.GD731@pathway.suse.cz> <568E867D.8060904@redhat.com> <20160107155236.GO3178@pathway.suse.cz> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Jan 2016, Petr Mladek wrote: > On Thu 2016-01-07 10:38:37, Prarit Bhargava wrote: > > Heh :) I didn't even think of testing that. I'll have to think about that a > > bit more. systemd logging must assume boot time/local time. I'll ping those > > guys with a patch if/when the next version of this gets accepted. > > I am not sure how many tools would be affected by this. I don't see a point in a gazillion of different clocks for printk either. > An easier solution would be to normalize all times and always save the > relative time since the boot as it is done now. Why? What's wrong with simply using the existing ktime_get_mono_fast_ns() instead of local_clock() and be done with it? Thanks, tglx