All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Matt Mackall <mpm@selenic.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Small patch to bloat-o-meter.
Date: Mon, 8 May 2006 01:11:34 -0400	[thread overview]
Message-ID: <200605080111.34985.rob@landley.net> (raw)
In-Reply-To: <20060508044800.GV15445@waste.org>

Second try: patch to upgrade scripts/bloat-o-meter to handle the names gcc 4 
gives static symbols.

Signed-off-by: Rob Landley <rob@landley.net>
---

--- linux-2.6.16/scripts/bloat-o-meter	2006-05-08 01:04:06.000000000 -0400
+++ linux-rob/scripts/bloat-o-meter	2006-05-08 01:02:36.000000000 -0400
@@ -18,7 +18,8 @@
     for l in os.popen("nm --size-sort " + file).readlines():
         size, type, name = l[:-1].split()
         if type in "tTdDbB":
-            sym[name] = int(size, 16)
+            if "." in name: name = "static." + name.split(".")[0]
+            sym[name] = sym.get(name, 0) + int(size, 16)
     return sym
 
 old = getsizes(sys.argv[1])

-- 
Never bet against the cheap plastic solution.

      reply	other threads:[~2006-05-08  5:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-07 19:59 [PATCH] Small patch to bloat-o-meter Rob Landley
2006-05-08  3:02 ` Matt Mackall
2006-05-08  4:43   ` Rob Landley
2006-05-08  4:48     ` Matt Mackall
2006-05-08  5:11       ` Rob Landley [this message]

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=200605080111.34985.rob@landley.net \
    --to=rob@landley.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpm@selenic.com \
    /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.