From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752274AbdG1Q3M (ORCPT ); Fri, 28 Jul 2017 12:29:12 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:59531 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751893AbdG1Q3K (ORCPT ); Fri, 28 Jul 2017 12:29:10 -0400 Date: Fri, 28 Jul 2017 18:28:13 +0200 (CEST) From: Thomas Gleixner To: Prarit Bhargava cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Mark Salyzyn , Jonathan Corbet , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , John Stultz , Stephen Boyd , Andrew Morton , Greg Kroah-Hartman , "Paul E. McKenney" , Christoffer Dall , Deepa Dinamani , Ingo Molnar , Joel Fernandes , Kees Cook , Geert Uytterhoeven , "Luis R. Rodriguez" , Nicholas Piggin , "Jason A. Donenfeld" , Olof Johansson , "Theodore Ts'o" , Josh Poimboeuf , linux-doc@vger.kernel.org Subject: Re: [PATCH 2/2] printk: Add boottime and real timestamps In-Reply-To: Message-ID: References: <1500985047-23038-1-git-send-email-prarit@redhat.com> <1500985047-23038-3-git-send-email-prarit@redhat.com> <20170725130034.jxcqrosqcrhw3shm@hirez.programming.kicks-ass.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Jul 2017, Prarit Bhargava wrote: > On 07/25/2017 09:00 AM, Peter Zijlstra wrote: > Thanks for the above change. I can see that makes the code simpler. > > > Although I must strongly discourage using REALTIME, DST will make > > untangling your logs an absolute nightmare. I would simply not provide > > it. > > I understand your concern, however, I've been in situations where REALTIME > stamping has pointed me in the direction of where a bug was. Even with the > complicated logs I think it is worthwhile. As Mark pointed out. ktime_get_real() and the fast variant return UTC. The timezone mess plus the DST nonsense are done in user space. Thanks, tglx