hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/scripts/bloat-o-meter
....@@ -26,12 +26,15 @@
2626 sym = {}
2727 with os.popen("nm --size-sort " + file) as f:
2828 for line in f:
29
+ if line.startswith("\n") or ":" in line:
30
+ continue
2931 size, type, name = line.split()
3032 if type in format:
3133 # strip generated symbols
3234 if name.startswith("__mod_"): continue
3335 if name.startswith("__se_sys"): continue
3436 if name.startswith("__se_compat_sys"): continue
37
+ if name.startswith("__addressable_"): continue
3538 if name == "linux_banner": continue
3639 # statics and some other optimizations adds random .NUMBER
3740 name = re_NUMBER.sub('', name)