Tweak suggested by Matt Mackall when I submitted the bloat-o-meter changes
back to linux-kernel...
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter
index af42f84..ce59fc2 100755
--- a/scripts/bloat-o-meter
+++ b/scripts/bloat-o-meter
@@ -18,9 +18,8 @@
for l in os.popen("nm --size-sort " + file).readlines():
size, type, name = l[:-1].split()
if type in "tTdDbB":
- if name.find(".") != -1: name = "static." + name.split(".")[0]
- if name in sym: sym[name] += int(size, 16)
- else :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])