Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1206627pxa; Thu, 13 Aug 2020 03:24:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi18IooVdaZ4K+gTCsm6q9SwuXi1w+wuRyDtDIFAURct2DEkt56c1HskE4upi9bMxiK+gd X-Received: by 2002:a17:906:b2d0:: with SMTP id cf16mr4036714ejb.514.1597314243640; Thu, 13 Aug 2020 03:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597314243; cv=none; d=google.com; s=arc-20160816; b=g79gwt1OQSZ/8sHdI6chJe4GCJdid/M3dGlvotpSZgj2yV7xuMqyYW3McTEBhhMnyu /jdGM5WkDR5zebtYHrdaCpsOdB+9jiwzKLC/gVup2MjXjwoOO75IqLcHweCDmJVGkaxl 4czK7M2of1GStzJ4LM4uPljDQKq2rrtQMGN8ZIxWsSqc0a12hGFquSKerlk6bGYjMYH8 bRDbPwn/NI++BK6AYKkvQv1B0z5G7gVb0pL2KexmJYaOjEvRRc6eYEJmxeF14k/gIm5C LSviwHa1mVxY9HsyVh8i3NHRe2nRoSqixtEg0BbGjYOEtCKVQu2/GqIZJonEytXXFXbo zOCQ== 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=uHZYtCyu+RV5Y9jP+YFA9PjI4TUqAydkjDw5auxL1uc=; b=S0JTcD+1q79Xt6HYVt17Kkf/LZRBOQfoq1wCyeDcMJ+6LxQxxPKszxpTB0YZoBFgCG 7GpLNavnDOtFK8Zdk1nxHDnUBuEtWImem1P67l2xmdc3Bc4CVh10ow0NNi+YU9vj9YS1 HRT2yBMLUaG2dRtQsVl8bDhGrUjOlQxbtbbVwptmBY20YdQxme7s9HAMS7jQPNZPDF80 4lLfS/dczpNi4SWBtQ+yjR7wN4TZak90Yhy+UL5BkoUcZUyNkTjFFc2IMKVLLr51Rl8m LSvBIXyFKhs8NbOR74AKDAPXw99e3trpBMAX50SIS/kauQdbnGps/+IddPrA/nWhTpXc ZPww== 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 q8si2992726ejo.528.2020.08.13.03.23.39; Thu, 13 Aug 2020 03:24:03 -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 S1726102AbgHMKXE (ORCPT + 99 others); Thu, 13 Aug 2020 06:23:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:39220 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbgHMKXB (ORCPT ); Thu, 13 Aug 2020 06:23:01 -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 E8798AE16; Thu, 13 Aug 2020 10:23:21 +0000 (UTC) Date: Thu, 13 Aug 2020 12:22:58 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: Thomas Gleixner , Orson Zhai , Prarit Bhargava , Dave Young , Baoquan He , Vivek Goyal , 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: <20200813102258.GL12903@alley> References: <1597120822-11999-1-git-send-email-orsonzhai@gmail.com> <20200811094413.GA12903@alley> <87zh7175hj.fsf@nanos.tec.linutronix.de> <20200811130218.GI6215@alley> <20200813015500.GC2020879@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200813015500.GC2020879@jagdpanzerIV.localdomain> 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 Thu 2020-08-13 10:55:00, Sergey Senozhatsky wrote: > On (20/08/11 15:02), Petr Mladek wrote: > > 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. > > Can we, perhaps, store those various "alternative" timestamps in dict so > then whoever wants to read them can just parse the dict key:value pairs > attach to each printk message? Interesting idea. It might be a way how to add optional metadata without breaking compatibility with crashdump tools. Well, I have bad feeling about it. Some of the reasons might be: + would take more space (prefix + text vs. binary representation) + not reliable because dict is currently dropped when no space + it would make the controversial dictionary feature more important I would prefer to solve this by storing the timestamps in the structure with metadata. Best Regards, Petr