From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BUG6152_INVALID_DATE_TZ_ABSURD,HEADER_FROM_DIFFERENT_DOMAINS, INVALID_DATE_TZ_ABSURD,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0810EC468BC for ; Fri, 7 Jun 2019 16:24:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D265D20840 for ; Fri, 7 Jun 2019 16:24:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730443AbfFGQYR (ORCPT ); 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