All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Arjan van de Ven <arjan@infradead.org>
Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org,
	Matt Mackall <mpm@selenic.com>
Subject: Re: [pull request] getting rid of __cpuinit
Date: Sat, 25 Oct 2008 18:21:16 +0200	[thread overview]
Message-ID: <20081025162116.GA13303@uranus.ravnborg.org> (raw)
In-Reply-To: <20081025080638.6203c874@infradead.org>

On Sat, Oct 25, 2008 at 08:06:38AM -0700, Arjan van de Ven wrote:
> On Sat, 25 Oct 2008 16:35:28 +0200
> Sam Ravnborg <sam@ravnborg.org> wrote:
> > So if you look at the size of the cpuinit/exit sections in the
> > before case you get the real space saving that is lost in the
> > embedded case after your patch is applied.
> > The space savings that happen after early init.
> 
> [linux.trees.git]# objdump -h vmlinux.before  | grep init.text
>  25 .init.text    00037c25  ffffffff8152a000  000000000152a000  0092a000
> [inux.trees.git]# objdump -h vmlinux.after  | grep init.text
>  25 .init.text    000316c2  ffffffff81542000  0000000001542000  00942000

So with your config we will loose a saving of 25955 bytes
of text.

I tried to look a the numbers of a defconfig build here.
cpuinit.text equals 0x5d97 = 23959
cpuinit.data equals 0x3574 = 13684

[objdump of vmlinux.o gives you the size of the cpuinit sections]

So if we decide to drop cpuinit then it should be based on the
above figure and not the 2k figure you gave in the original mail.

Or even better we should see the difference with a typical
embedded configuration and not some big defconfig build.
I will assume the saving is less on a typical embedded
configuration.

	Sam

  reply	other threads:[~2008-10-25 16:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 21:20 [pull request] getting rid of __cpuinit Arjan van de Ven
2008-10-24 21:37 ` [PATCH] kbuild: drop cpuinit/cpuexit checks in modpost Sam Ravnborg
2008-10-25 23:56   ` Arjan van de Ven
2008-10-25  7:59 ` [pull request] getting rid of __cpuinit Sam Ravnborg
2008-10-25 14:00   ` Arjan van de Ven
2008-10-25 14:35     ` Sam Ravnborg
2008-10-25 15:06       ` Arjan van de Ven
2008-10-25 16:21         ` Sam Ravnborg [this message]
2008-10-25 16:29           ` Arjan van de Ven
2008-10-25 18:20             ` Rafael J. Wysocki
2008-10-25 21:36               ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081025162116.GA13303@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpm@selenic.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.