From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH 3/3] printk: implement support for extended console drivers Date: Mon, 29 Jun 2015 11:28:05 -0400 Message-ID: <20150629152805.GM15805@mtj.duckdns.org> References: <1430318704-32374-1-git-send-email-tj@kernel.org> <1430318704-32374-4-git-send-email-tj@kernel.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=PM3JPZ5YMEZ6w4hygdsdvFxv1EF81W6HLQdnxCtPkn0=; b=ncKne6P4m4r0QPFkxg/EO6uzIJwOOARcUtF5JKH49I2xaFV2j5WWDj9JCUllX+O+Iq 60nKB6AQOfm9VIrokUhkHnWphVUDB1Vvn4UKuMarrXC7QQkHI2lKhMGWiRadUB026w58 pwSGr4KXMOm1Yw5zod0kQHHoOAxTeMglU2uxfW3PZklgyj7/nKjCMHb8IeipPM/SkHTa cZhtSqUGNL5FeF8bpcoq+IXQ7SOSU/9Q966JVxCNNfNKTie9VpnBTUSdI+q8UgGqhD+q 6W/DCcL4VBUJyniKEi+NIHwuEshRG2mub6yM0a2mEK9vYjriCYlb2keGpEj234zs2D5H GzXQ== Content-Disposition: inline In-Reply-To: Sender: linux-embedded-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Geert Uytterhoeven Cc: pmladek@suse.cz, Andrew Morton , "David S. Miller" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Kay Sievers , Josh Triplett , Linux Embedded Hello, On Mon, Jun 29, 2015 at 11:20:41AM +0200, Geert Uytterhoeven wrote: > On Wed, Apr 29, 2015 at 4:45 PM, Tejun Heo wrote: > > --- a/kernel/printk/printk.c > > +++ b/kernel/printk/printk.c > > > @@ -2196,6 +2227,7 @@ out: > > */ > > void console_unlock(void) > > { > > + static char ext_text[CONSOLE_EXT_LOG_MAX]; > > Can you please > a) make this feature optional, netconsole itself is optional & modular. I'm not sure making further splits is called for, especially given the use cases. > b) (de)allocate this buffer dynamically when the first/last console with > CON_EXTENDED set is (un)registered? But yeah, making the buffer allocated on demand should be simple enough. Will get to it. Thanks. -- tejun