Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1360050ybv; Thu, 6 Feb 2020 02:45:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxTmI69ka3uXF9tZ0fLwhpbvsHeom7i7fAejBEk2kSsTKNwdx2yviMaBRtk3t0lwInau5MY X-Received: by 2002:a05:6830:145:: with SMTP id j5mr28338267otp.242.1580985926799; Thu, 06 Feb 2020 02:45:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580985926; cv=none; d=google.com; s=arc-20160816; b=c+QkDmWeR6Gmof1FUPdWddF+RDRP6QJyKB/lGQLDlUz/r26JyGUBLKytmaIwp3Mwhr BPWxvK7FM1wjaPM+/kQGnIwyzrNjde2Gm6AfeX0fN78oBL66kAGvcSq00CQNOrty9/55 q4ckmgSZyRliLsfT2fTZc1LBax5iQACIGBLcd1yBxYix7S4fCrhX7G3SWn2PbfU44m4A NKU/2tbS2lZdY+FG5EITkH2x7jLBwIP/gfA4SIz2zppOD0qDMZ6x3EKEXrDQvnWWX8ds sBQBeBu/j5cCzB9LoS/KB4jswxvXea+QMX7GTlsKLxROd1bWfq1lgNz8lPxRGmPiXHvc W17w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7vg6/blGqHqErRgjd39RecgnPSBgnnS+bDu7HevfsIE=; b=UDhaDpGR6c1lUk2wiAT7Y1PU1aLRq0plWICzOJY0ZjhZIlfS40kaXfiiRTQCFskQaG /GBddZx+RZ9doNq8V3B9w0dQzMcC2scAc9FU+qLVTRmk2OY+lrRu2qQptgQVgQA2tKlH kLE3ukWpKwX0+D63xeMG2USiSQgYcbv+MK+IqJskmDKeBokzkJjk+fzulPnmGW7Fu9F4 vDJGah4RPnxhoQDlZIixIESZ3xW7YJIQZQOnipDRWZNlNhiT19oRI+P6RyUm9usKRtg+ QbWZq62JEt72KWoH11sBcMTdtMo24s7W+AE423JDX8wVIMPDWqdLIAMdKdTn//bev+xE Rgsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PtO/2ydu"; 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=pass (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 r4si1672803otq.188.2020.02.06.02.45.14; Thu, 06 Feb 2020 02:45:26 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PtO/2ydu"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727958AbgBFJV7 (ORCPT + 99 others); Thu, 6 Feb 2020 04:21:59 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:43677 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727672AbgBFJV7 (ORCPT ); Thu, 6 Feb 2020 04:21:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580980918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7vg6/blGqHqErRgjd39RecgnPSBgnnS+bDu7HevfsIE=; b=PtO/2ydu3hGWPeKpL5tXvGbsI7SC2YrSJB7DjqXR5RYPZ/kRnMs4U6rkv5pvBiDroXMxB8 d+ChSrjxc9+/jF5AJb2tLJy9Cdd9eQunay1ih8pjoKPTLo/48em819pdxwOdlce/KOnax0 68yW7OVNzIG5GO2By11HaVx8qnuajL0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-249-WlCw4__jMIC6UmAdIE-P4w-1; Thu, 06 Feb 2020 04:21:47 -0500 X-MC-Unique: WlCw4__jMIC6UmAdIE-P4w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 768B68010FD; Thu, 6 Feb 2020 09:21:45 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-108.pek2.redhat.com [10.72.12.108]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 724571E2B5; Thu, 6 Feb 2020 09:21:38 +0000 (UTC) Subject: Re: [PATCH 0/2] printk: replace ringbuffer To: John Ogness Cc: Petr Mladek , Peter Zijlstra , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , kexec@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200128161948.8524-1-john.ogness@linutronix.de> From: lijiang Message-ID: <0f49d4cc-be61-ed0c-5001-2256416fe2ec@redhat.com> Date: Thu, 6 Feb 2020 17:21:34 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200128161948.8524-1-john.ogness@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E5=9C=A8 2020=E5=B9=B401=E6=9C=8829=E6=97=A5 00:19, John Ogness =E5=86=99= =E9=81=93: > Hello, >=20 > After several RFC series [0][1][2][3][4], here is the first set of > patches to rework the printk subsystem. This first set of patches > only replace the existing ringbuffer implementation. No locking is > removed. No semantics/behavior of printk are changed. >=20 > The VMCOREINFO is updated, which will require changes to the > external crash [5] tool. I will be preparing a patch to add support > for the new VMCOREINFO. >=20 In addition to changing the crash utility, I would think that the kexec-tools(such as the vmcore-dmesg and makedumpfile) also need to be modified accordingly. Thanks Lianbo > This series is in line with the agreements [6] made at the meeting > during LPC2019 in Lisbon, with 1 exception: support for dictionaries > will _not_ be discontinued [7]. Dictionaries are stored in a separate > buffer so that they cannot interfere with the human-readable buffer. >=20 > John Ogness >=20 > [0] https://lkml.kernel.org/r/20190212143003.48446-1-john.ogness@linutr= onix.de > [1] https://lkml.kernel.org/r/20190607162349.18199-1-john.ogness@linutr= onix.de > [2] https://lkml.kernel.org/r/20190727013333.11260-1-john.ogness@linutr= onix.de > [3] https://lkml.kernel.org/r/20190807222634.1723-1-john.ogness@linutro= nix.de > [4] https://lkml.kernel.org/r/20191128015235.12940-1-john.ogness@linutr= onix.de > [5] https://github.com/crash-utility/crash > [6] https://lkml.kernel.org/r/87k1acz5rx.fsf@linutronix.de > [7] https://lkml.kernel.org/r/20191007120134.ciywr3wale4gxa6v@pathway.s= use.cz >=20 > John Ogness (2): > printk: add lockless buffer > printk: use the lockless ringbuffer >=20 > include/linux/kmsg_dump.h | 2 - > kernel/printk/Makefile | 1 + > kernel/printk/printk.c | 836 +++++++++--------- > kernel/printk/printk_ringbuffer.c | 1370 +++++++++++++++++++++++++++++ > kernel/printk/printk_ringbuffer.h | 328 +++++++ > 5 files changed, 2114 insertions(+), 423 deletions(-) > create mode 100644 kernel/printk/printk_ringbuffer.c > create mode 100644 kernel/printk/printk_ringbuffer.h >=20