Re: [PATCH] Small patch to bloat-o-meter.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Rob Landley <[email protected]>
---

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux