Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp586991ybl; Tue, 28 Jan 2020 08:22:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxLmYKe3RVxde1IupeD/kL5bfoPswE7OUS5P+4KRtIg0AQBOo+TJxqVlmpKNSEqZ4DZgk2K X-Received: by 2002:a54:4396:: with SMTP id u22mr3446380oiv.128.1580228546740; Tue, 28 Jan 2020 08:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580228546; cv=none; d=google.com; s=arc-20160816; b=JjIDZlRzFIERAKQ/ZgMnCIkKKrQHa4VHuS4aG35ojV9vvy3pa7umc0XXyEmbVyeGNE b59G++A70p8TVhX8B0L9czNuFzo6lA2R6Rc2Anr+DboTM57AzToH5W9wc3m41o6BGwpt b/JINvNC4livuWEGc+bldHdI4JRVGIXw0e25yrPga/MIbgIRxzIlmAP9KuGQHlMJUhH3 rRHHeseO2DuZNoXY2gVz/Y/C2i8VwcNVC2DdkG86k01tB04Z56WUFa3+rSpzA64V3eOn bvsee+okfdqF4sh4tO/7fseEOnBdY1CmcGXsS3skDezZADnMJwmEIE94e4y1P+LfYnHl dFdQ== 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:mime-version :message-id:date:subject:cc:to:from; bh=DePuXgoTnw0LniVVzDAR3yEqwwK0FFkdk4UbCov76DQ=; b=CgPeISOFRa4qWnTsT9cZMP5JHUaZ7+5egSgiAR+DQ3ILvvI2Q+tgqC+OOCF0F8kV60 3SQihJDbGYWBlNB/DRHfiOAQh3J1Euag9w0QtgWVI5CQeSbnzjoPA3+QUGnjY0AGfirx XBkX0akd/L9kJKkQG25f4WA0YrwDeuPlwlcpfUDYE4uUA4sE725iCRC1K29BvmgMulRe SRc49VfEo1442UD1jeGCZ/qJL1fjE24T3ZaIoVixIB6hInBCknOI+xhNRrASlt9hxH3r oBsoqQY3C6oEe60E7AkixkML+Bsx131R0sSd8L6iWc6AvKg4PFE/0dSGk9eLBOlvhOUi 8EVw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y26si9167645otk.315.2020.01.28.08.22.14; Tue, 28 Jan 2020 08:22: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726264AbgA1QUT (ORCPT + 99 others); Tue, 28 Jan 2020 11:20:19 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:49350 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbgA1QUT (ORCPT ); Tue, 28 Jan 2020 11:20:19 -0500 Received: from [5.158.153.53] (helo=g2noscherz.lab.linutronix.de.) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1iwTap-0001xK-7S; Tue, 28 Jan 2020 17:19:59 +0100 From: John Ogness To: Petr Mladek Cc: 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 Subject: [PATCH 0/2] printk: replace ringbuffer Date: Tue, 28 Jan 2020 17:25:46 +0106 Message-Id: <20200128161948.8524-1-john.ogness@linutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, 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. 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. 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. John Ogness [0] https://lkml.kernel.org/r/20190212143003.48446-1-john.ogness@linutronix.de [1] https://lkml.kernel.org/r/20190607162349.18199-1-john.ogness@linutronix.de [2] https://lkml.kernel.org/r/20190727013333.11260-1-john.ogness@linutronix.de [3] https://lkml.kernel.org/r/20190807222634.1723-1-john.ogness@linutronix.de [4] https://lkml.kernel.org/r/20191128015235.12940-1-john.ogness@linutronix.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.suse.cz John Ogness (2): printk: add lockless buffer printk: use the lockless ringbuffer 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 -- 2.20.1