From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936007AbdCXMSu (ORCPT ); Fri, 24 Mar 2017 08:18:50 -0400 Received: from mail-qk0-f175.google.com ([209.85.220.175]:33214 "EHLO mail-qk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935947AbdCXMSm (ORCPT ); Fri, 24 Mar 2017 08:18:42 -0400 Date: Fri, 24 Mar 2017 08:18:39 -0400 (EDT) From: Nicolas Pitre To: Baruch Siach cc: Greg Kroah-Hartman , Jiri Slaby , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] minitty: a minimal TTY layer alternative for embedded systems In-Reply-To: <20170324035046.2mupvte2yzbgmslb@tarshish> Message-ID: References: <20170323210304.2181-1-nicolas.pitre@linaro.org> <20170324035046.2mupvte2yzbgmslb@tarshish> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Mar 2017, Baruch Siach wrote: > Hi Nicolas, > > On Thu, Mar 23, 2017 at 05:03:01PM -0400, Nicolas Pitre wrote: > > Here's some numbers using a minimal ARM config. > > > > When CONFIG_TTY=y, the following files are linked into the kernel: > > > > text data bss dec hex filename > > 8796 128 0 8924 22dc drivers/tty/n_tty.o > > 12846 276 44 13166 336e drivers/tty/serial/serial_core.o > > 4852 489 49 5390 150e drivers/tty/sysrq.o > > 1376 0 0 1376 560 drivers/tty/tty_buffer.o > > 13571 172 132 13875 3633 drivers/tty/tty_io.o > > 3072 0 0 3072 c00 drivers/tty/tty_ioctl.o > > 2457 2 120 2579 a13 drivers/tty/tty_ldisc.o > > 1328 0 0 1328 530 drivers/tty/tty_ldsem.o > > 316 0 0 316 13c drivers/tty/tty_mutex.o > > 2516 0 0 2516 9d4 drivers/tty/tty_port.o > > 51130 1067 345 52542 cd3e (TOTALS) > > > > With CONFIG_TTY=n and CONFIG_MINITTY_SERIAL=y, the above is replaced by: > > > > text data bss dec hex filename > > 8776 8 108 8892 22bc drivers/tty/serial/minitty_serial.o > > tty_baudrate.o is missing here. It is included in serial_core.o when > CONFIG_TTY=y. It is also included when CONFIG_MINITTY_SERIAL=y, so for comparison purpose I didn't list common files here. Nicolas From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.pitre@linaro.org (Nicolas Pitre) Date: Fri, 24 Mar 2017 08:18:39 -0400 (EDT) Subject: [PATCH 0/3] minitty: a minimal TTY layer alternative for embedded systems In-Reply-To: <20170324035046.2mupvte2yzbgmslb@tarshish> References: <20170323210304.2181-1-nicolas.pitre@linaro.org> <20170324035046.2mupvte2yzbgmslb@tarshish> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, 24 Mar 2017, Baruch Siach wrote: > Hi Nicolas, > > On Thu, Mar 23, 2017 at 05:03:01PM -0400, Nicolas Pitre wrote: > > Here's some numbers using a minimal ARM config. > > > > When CONFIG_TTY=y, the following files are linked into the kernel: > > > > text data bss dec hex filename > > 8796 128 0 8924 22dc drivers/tty/n_tty.o > > 12846 276 44 13166 336e drivers/tty/serial/serial_core.o > > 4852 489 49 5390 150e drivers/tty/sysrq.o > > 1376 0 0 1376 560 drivers/tty/tty_buffer.o > > 13571 172 132 13875 3633 drivers/tty/tty_io.o > > 3072 0 0 3072 c00 drivers/tty/tty_ioctl.o > > 2457 2 120 2579 a13 drivers/tty/tty_ldisc.o > > 1328 0 0 1328 530 drivers/tty/tty_ldsem.o > > 316 0 0 316 13c drivers/tty/tty_mutex.o > > 2516 0 0 2516 9d4 drivers/tty/tty_port.o > > 51130 1067 345 52542 cd3e (TOTALS) > > > > With CONFIG_TTY=n and CONFIG_MINITTY_SERIAL=y, the above is replaced by: > > > > text data bss dec hex filename > > 8776 8 108 8892 22bc drivers/tty/serial/minitty_serial.o > > tty_baudrate.o is missing here. It is included in serial_core.o when > CONFIG_TTY=y. It is also included when CONFIG_MINITTY_SERIAL=y, so for comparison purpose I didn't list common files here. Nicolas