Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp373774ybi; Fri, 7 Jun 2019 09:25:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdiTJVwx47R8wXMw++rBh5DaEFEscL85UAasANlgxWCLkPaJZPt1zTJmNafELmRF13+T35 X-Received: by 2002:a62:2506:: with SMTP id l6mr59357570pfl.250.1559924756765; Fri, 07 Jun 2019 09:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559924756; cv=none; d=google.com; s=arc-20160816; b=i4IULXjJhEzIwoJvl+3vcxdy00eUiHbxT6f/M0gizuc67mYZuTkmlrpk3d3PeqvqkF +Lks/jIleQBwtQIQAdXLXrzdE/IHIdehwzkrKoAsCOsR9RmlvRjwH08YOFO53rFlcp+s 9sUuVnv+VACCsqhL1Q22h5COOvQcW7co0EOjcYm1kaAqf5ThEmFHgIyx3NG5ACw4gAUM 1cNWYh/KVCV/S9j6zVE0KCLqNJPx9U39lCG6GuFeT9VF6++HLND6K4y5qrCOTTNYqYKK mnLg0LDCRvjGQ2w885m2yVLfBFIU2S1XEILXpa1aIZ5peBTf9hct/4WhcEMHB+ZFfxrj /+pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=+W2x+U9FyNJr//YKGirxyeSWTHmQndoJmDE1GN+f24A=; b=R3LOkPaNp0ldmzD55uSgpFDpNfg6MLQxQ9QI9kJ5l5E6bP65QKRpb5PN8+4/+BLjkZ ovUC4sDnPoYOl1O/ddBoqG7E90CQvsCbkY9Ji21NQ51IUx0I1SL9PzdLOYvU15IKYoEC X6WdynEfuQfq0JWl1sk6b6oPm6q9UZcxPN7LPoyrIPSLfTYNm++Saj0o0qjkqcTTDl+h 3hVQtgfSzY2Lc0VpGuGhfUbyT7mZKiiu6jXABF0XR4ILxKwta9E/oedb2BKyes9phhTP vRq2LnVabHRp14XmYyQ+8mTQhbgF9K/Fye4AJUq1H6hR9OSjzY/cDrxh0lh8zgqMUwxF DDug== 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 i16si1308220pgl.559.2019.06.07.09.25.38; Fri, 07 Jun 2019 09:25:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730425AbfFGQYR (ORCPT + 99 others); Fri, 7 Jun 2019 12:24:17 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:50571 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730066AbfFGQYR (ORCPT ); Fri, 7 Jun 2019 12:24:17 -0400 Received: from [5.158.153.52] (helo=noscherz.tec.linutronix.de.) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1hZHep-0000ei-KF; Fri, 07 Jun 2019 18:23:59 +0200 From: John Ogness To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky Subject: [RFC PATCH v2 0/2] printk: new ringbuffer implementation Date: Fri, 7 Jun 2019 18:29:47 +0206 Message-Id: <20190607162349.18199-1-john.ogness@linutronix.de> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This is a follow-up RFC on the work to reimplement much of the core of printk. The original thread can be seen here[0]. One of the results of that thread was that the work needs to be broken up into several pieces. A roadmap was laid out[1] and this RFC is for the base component of the first piece: a new ringbuffer implementation for printk. This series does not touch any existing printk code. It is only the ringbuffer implementation. I am particularly interested in feedback relating to the design of the ringbuffer and the use of memory barriers. The series also includes a test module that performs some heavy writer stress testing. I have successfully run these tests on a 16-core ARM64 platform. John Ogness [0] https://lkml.kernel.org/r/20190212143003.48446-1-john.ogness@linutronix.de [1] https://lkml.kernel.org/r/87y35hn6ih.fsf@linutronix.de John Ogness (2): printk-rb: add a new printk ringbuffer implementation printk-rb: add test module Documentation/core-api/index.rst | 1 + Documentation/core-api/printk-ringbuffer.rst | 104 +++ include/linux/printk_ringbuffer.h | 238 +++++++ lib/Makefile | 2 + lib/printk_ringbuffer.c | 924 +++++++++++++++++++++++++++ lib/test_prb.c | 237 +++++++ 6 files changed, 1506 insertions(+) create mode 100644 Documentation/core-api/printk-ringbuffer.rst create mode 100644 include/linux/printk_ringbuffer.h create mode 100644 lib/printk_ringbuffer.c create mode 100644 lib/test_prb.c -- 2.11.0