Re: [PATCH] Small patch to bloat-o-meter.
From: Rob Landley
Date: Mon May 08 2006 - 01:10:14 EST
Second try: patch to upgrade scripts/bloat-o-meter to handle the names gcc 4
gives static symbols.
Signed-off-by: Rob Landley <rob@xxxxxxxxxxx>
---
--- 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/