Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1057944pxa; Thu, 20 Aug 2020 01:02:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlh4lq2/IeuBZr/+D6MglUmsA54pwayGz3bSB2wYO+iNBiWg6fBB06g/eQxYPwjz85+n4f X-Received: by 2002:a05:6402:b99:: with SMTP id cf25mr1658939edb.340.1597910535886; Thu, 20 Aug 2020 01:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597910535; cv=none; d=google.com; s=arc-20160816; b=Ud7ku0bCC+E4vTISx1oV9lOAxtc24SUnqxXDgN/zGpBzdgZPJtGvrT89rq1u1Lhhan XWk0Lie9uGr/IY+NZTR3AGLStlqSoJBw9CDfpH4HLGeNPh60WyvmqQrwZ7obi+IJkAN4 uaurf+oQxPdRR5pTPlXy6qHAx1tijZ8zrArahZfOJq+GaxtkL/kqvUxA/th4RAXQr3pi kFvxRrBrgE3Sg8729NwZOJ61ZP069Dd7dYHhZfzKRnwISi4aCxGVQcps/65CEMqTsjT6 yzWoQdXmvrK0/KE31x/E9NYBo0jRn5+4l+7CVBlSy7EyHxG+Cza6WcFnLMT6VpB0PwVQ c9Kg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=lxnLpoPS5/HVXG30yKNmH+ls/JsskX2B2JFDPsjvr34=; b=GiN+jlnVvIp4XkTp7jZzq6avXuD6ZZ5XpFEynSt7qB1pTz1RZVqiANISQf0XdiDRyh bvQDTrc6dDl1bPuWHvni540p4LraNf7hB/m6t16Jy1cmzHSaygF2gGqYS+cQv5he9PZV PosiZ27G5KmOCcaKkV0U4AjbaaC+4359Tmv5e8OzIjXpVKZw3uZGJEAp0MaW3PUu5ASY 7MCfr7a2NC8BkzaaMTPdaa/Dl49FFgaT/r7OtUNVou5JarqaT+mHKVb6PzWhk/4/53Lg z2koEm8XAaRhH4SQlIQpb5uQFv/Mu973rsoo3utxhXGTVUMDytgx/dwy7++7cqw9QgQ8 7nhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i21si669237ejz.395.2020.08.20.01.01.51; Thu, 20 Aug 2020 01:02:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725916AbgHTH7e (ORCPT + 99 others); Thu, 20 Aug 2020 03:59:34 -0400 Received: from smtprelay0080.hostedemail.com ([216.40.44.80]:46182 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbgHTH7e (ORCPT ); Thu, 20 Aug 2020 03:59:34 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id F25CF181D330D; Thu, 20 Aug 2020 07:59:32 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1566:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2691:2828:3138:3139:3140:3141:3142:3622:3865:3866:3868:3870:3873:4321:4423:5007:6120:8603:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12297:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21451:21627:21990:30034:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: paste48_5b144792702f X-Filterd-Recvd-Size: 1775 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Thu, 20 Aug 2020 07:59:31 +0000 (UTC) Message-ID: <29b6120680fbfb51936bb9100b2c9bb78385aef0.camel@perches.com> Subject: Re: [RFC PATCH 1/5] printk: implement pr_cont_t From: Joe Perches To: David Laight , John Ogness , Linus Torvalds Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Thomas Gleixner , Sergey Senozhatsky , "linux-kernel@vger.kernel.org" Date: Thu, 20 Aug 2020 00:59:30 -0700 In-Reply-To: References: <20200819232632.13418-1-john.ogness@linutronix.de> <20200819232632.13418-2-john.ogness@linutronix.de> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-08-20 at 07:44 +0000, David Laight wrote: > I've no idea how you'd 'size' the number of buffers. I believe they are static and assume no more than 10 simultaneous uses of printk_begin +#define CONT_LINE_MAX LOG_LINE_MAX +#define CONT_BUF_COUNT 10 +static char cont_buf[CONT_BUF_COUNT][CONT_LINE_MAX]; +static DECLARE_BITMAP(cont_buf_map, CONT_BUF_COUNT); Though I don't see much value in a separate define for CONT_LINE_MAx