Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp509607ybl; Thu, 15 Aug 2019 22:55:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwri2O0Fr0N81Tvto6PzSzSHsn8K48i+jFQ/AV7ajIAHmtSF8oox1RoneubDiwH8JvVT1nW X-Received: by 2002:a17:902:b48c:: with SMTP id y12mr7582220plr.202.1565934920525; Thu, 15 Aug 2019 22:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565934920; cv=none; d=google.com; s=arc-20160816; b=G0h6aet7o22+pIU/oBSdb9qfMKIdRwlVbF5I12qhlL7XIYFlcgfUDt2m2Yhh7W6b5d ZkuyndzpfVgXsVDXsQIESYnj/sN5QiSaMRf0v0nW+l7PXvUk84Jh4Zh8s82/fshEseZC WXYdyZW4sn4SWghqcSgjOCD1lDiqMpdYjeOUHaCOYaiDAv8CGIsvmYE8HAop9uLlN0vD GjqcbsfFC7NtNC7XGLbPc0hLJlpilHTy8Y4aokQ/8++/pHmpslc0evLcewsbH7zQ0u4f y2H06do75FxMt8M9M44gK+gl6Nz2CMzPd8m45ezycKm4mqTBKUDLryoudLdgI8Nh/Qso QWNA== 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=ddnBIr6dczcn9EViEZXoP4llWjoXi7pPXq799gg69ZA=; b=rKaIuhzwnJIXvupZkAMc5QnvBwPHZ1q9vKkiL/i1vkii17ZSNRpcvoDqxtMrAGblUi fPINMPQglIwHukioMe4YvmQW89lwWUWWpLXsbevxxBi240Gudm69QacjQK7JSbn5ZkfH QRfh/2UZh+HK72hYOQ/ZuF0G0HhPRduE2NCgtQjYjbmr2D4w0LiZBg8nYxXwV1/7qKAa QeGUyJFr1Zi29SWC2Icz9XKhPGEuiCoXYd7q4v92Fr0qwMtAae70Vz7Q9PPUN9uDMBLz Sr2mLHV63DGhwC7cquSG/Yk4LsI4Gpyaq2PynItn7nMBERABvtPyBQfgsJ3Jt3jnvcXI lGEQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j38si3313134plb.107.2019.08.15.22.55.04; Thu, 15 Aug 2019 22:55:20 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbfHPFy0 (ORCPT + 99 others); Fri, 16 Aug 2019 01:54:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33664 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfHPFyZ (ORCPT ); Fri, 16 Aug 2019 01:54:25 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 32C2D308FC20; Fri, 16 Aug 2019 05:54:25 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-126.pek2.redhat.com [10.72.12.126]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B528F5C1D6; Fri, 16 Aug 2019 05:54:19 +0000 (UTC) Date: Fri, 16 Aug 2019 13:54:16 +0800 From: Dave Young To: John Ogness Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky , Brendan Higgins , kexec@lists.infradead.org, Simon Horman , Kazuhito Hagio , David Woodhouse Subject: Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation Message-ID: <20190816055416.GA4460@dhcp-128-65.nay.redhat.com> References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190807222634.1723-10-john.ogness@linutronix.de> <20190816054651.GA4403@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190816054651.GA4403@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Fri, 16 Aug 2019 05:54:25 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/16/19 at 01:46pm, Dave Young wrote: > John, can you cc kexec list for your later series? > > On 08/08/19 at 12:32am, John Ogness wrote: > > This is a major change because the API (and underlying workings) > > of the new ringbuffer are completely different than the previous > > ringbuffer. Since there are several components of the printk > > infrastructure that use the ringbuffer API (console, /dev/kmsg, > > syslog, kmsg_dump), there are quite a few changes throughout the > > printk implementation. > > > > This is also a conservative change because it continues to use the > > logbuf_lock raw spinlock even though the new ringbuffer is lockless. > > > > The externally visible changes are: > > > > 1. The exported vmcore info has changed: > > > > - VMCOREINFO_SYMBOL(log_buf); > > - VMCOREINFO_SYMBOL(log_buf_len); > > - VMCOREINFO_SYMBOL(log_first_idx); > > - VMCOREINFO_SYMBOL(clear_idx); > > - VMCOREINFO_SYMBOL(log_next_idx); > > + VMCOREINFO_SYMBOL(printk_rb_static); > > + VMCOREINFO_SYMBOL(printk_rb_dynamic); > > I assumed this needs some userspace work in kexec, how did you test > them? > > makedumpfile should need changes to dump the kernel log. > > Also kexec-tools includes a vmcore-dmesg.c to extrace dmesg from > /proc/vmcore. > > > > > 2. For the CONFIG_PPC_POWERNV powerpc platform, kernel log buffer > > registration is no longer available because there is no longer > > a single contigous block of memory to represent all of the > > ringbuffer. > > > > Signed-off-by: John Ogness > > --- > > arch/powerpc/platforms/powernv/opal.c | 22 +- > > include/linux/kmsg_dump.h | 6 +- > > include/linux/printk.h | 12 - > > kernel/printk/printk.c | 745 ++++++++++++++------------ > > kernel/printk/ringbuffer.h | 24 + > > 5 files changed, 415 insertions(+), 394 deletions(-) > > [snip] Seems kexec list has 40k limitation for msg body. Simon and David, maybe it is too small? Thanks Dave