Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp398644pxa; Tue, 11 Aug 2020 06:03:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybWV7Ac8IOpxq0norqeIPvQwc3hLYcQdWReBCUFl1hQOgpYZLGjHlREcoSLrbuKn8RNjCe X-Received: by 2002:aa7:cd76:: with SMTP id ca22mr25515905edb.42.1597150998169; Tue, 11 Aug 2020 06:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597150998; cv=none; d=google.com; s=arc-20160816; b=CkVSo1cjAu8UIkDsLrrEYDoWZu/rGYqnkpAOoJz8CY7/nm6Q0cAXXlaeXPnCCDegZ4 CpVvW1TDcQQ/V9j0M9KpxXTj8rCdjFMt5slsvCUgZSC4htj7r67RQcIKDe87osXTOB6r bqR6ujKOvqC6Y72pwHWycyrifr3f59OdaP1cTiYGj6Ixr4y3totkIquMfJrk93lFSoML ugYEZOW/yXHByTYeREsxsgZFdDXPabe7UybwzUurClE6s0wB8GmR35x7zwbmj0hfrvxZ uwgCCfsR91R4sbSsvlGE2lU4WBBWy2f5EmyeHb+3ngxo0cHqoruYQ89MV/JmSi1rGP+B AszA== 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=3jR1cyt0OxZSfVGBoHQuStflbRlbTW/aaUtR8Ajvslo=; b=Od8Ry0VbICepsWximCj+97oIOCwnatVWlwG2sCpjLkPjZLq0EjVi7TJoC21nx4HswJ 4aSF+jD6dx5GqzMRgw1pM0MYDTUXkwShjO59OHXmVL7/SL+7B6/gUBq/PLOHlnLEGEFA LOg4hpDfB5LYcMmTikV8v76oFjHdQb7ZM2K+qeo4Rmz9cLLZKp8DlWJ/y8zIfCuo+M7h 25HJv1wK/9MtmZtFpKpNqHe6L35cr6FYLia8mfzCiPNORyjM2FKjD2RBRyqoVAkzOA8B V+WnK92JRmvpTJ5sk2cYmrsaHKYMdWk7JYAhfCix7z25an6SDoUeIT1zGo3jYQECQInj K/eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si12454398eds.65.2020.08.11.06.02.51; Tue, 11 Aug 2020 06:03:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728637AbgHKNCU (ORCPT + 99 others); Tue, 11 Aug 2020 09:02:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:42628 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728506AbgHKNCU (ORCPT ); Tue, 11 Aug 2020 09:02:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A9857AE54; Tue, 11 Aug 2020 13:02:39 +0000 (UTC) Date: Tue, 11 Aug 2020 15:02:18 +0200 From: Petr Mladek To: Thomas Gleixner Cc: Orson Zhai , Prarit Bhargava , Dave Young , Baoquan He , Vivek Goyal , Sergey Senozhatsky , Steven Rostedt , John Stultz , Stephen Boyd , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, zhang.lyra@gmail.com, ruifeng.zhang1@unisoc.com, cixi.geng1@unisoc.com, Orson Zhai , Pavel Tatashin , Steven Sistare , Dominique Martinet , Jon DeVree , Salvatore Bonaccorso , John Ogness Subject: Re: [RFC PATCH] printk: Change timestamp to triplet as mono, boot and real Message-ID: <20200811130218.GI6215@alley> References: <1597120822-11999-1-git-send-email-orsonzhai@gmail.com> <20200811094413.GA12903@alley> <87zh7175hj.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zh7175hj.fsf@nanos.tec.linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2020-08-11 14:05:12, Thomas Gleixner wrote: > Petr Mladek writes: > > At least "crash" tool would need an update anyway. AFAIK, it checks > > the size of struct printk_log and refuses to read it when it changes. > > > > It means that the hack with VMCOREINFO_FIELD_OFFSET probably is not > > needed because we would need to update the crashdump-related tools anyway. > > > > Well, the timing is good. We are about to switch the printk ring > > buffer into a lockless one. It requires updating the crashdump tools > > as well. We could do this at the same time. The lockless ring buffer > > already is in linux-next. It is aimed for 5.10 or 5.11. > ... > > It would be great to synchronize all these changes changes of the > > printk log buffer structures. > > I agree that having one update is a good thing, but pretty please can we > finally make progress with this and not create yet another dependency? To make it clear. I definitely do not want to block lockless printk by this. BTW: I am not 100% convinced that storing all three timestamps is worth it. It increases the code complexity, metadata size. It needs an interface with the userspace that has to stay backward compatible. Also it still will be racy because the timestamp is taken when the message is printed. It might be "long" before or after the event that it talks about. There is still the alternative to print all three timestamps regularly for those interested. It is less user convenient but much easier to maintain. Best Regards, Petr