include/asm-x86/processor.h: checkpatch cleanups - formatting only
[sfrench/cifs-2.6.git] / scripts / bloat-o-meter
index 75f21d843c1d5f814176bf6d33a37313146ad529..6501a50e17f0e157dab2dab3d64d8807fc3669da 100755 (executable)
@@ -18,7 +18,9 @@ def getsizes(file):
     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)
+            # function names begin with '.' on 64-bit powerpc
+            if "." in name[1:]: name = "static." + name.split(".")[0]
+            sym[name] = sym.get(name, 0) + int(size, 16)
     return sym
 
 old = getsizes(sys.argv[1])