Commit 21cf6e584ce35b79374581e6344dd7c74f8b4a2b
Committed by
Michal Marek
1 parent
f3462aa952
Exists in
master
and in
16 other branches
kbuild, bloat-o-meter: fix static detection
Disable static detection: the static currently drops a lot of useful information including clones generated by gcc. Drop this. The statics will appear now without static. prefix. But remove the LTO .NUMBER postfixes that look ugly Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
scripts/bloat-o-meter
... | ... | @@ -20,8 +20,8 @@ |
20 | 20 | if type in "tTdDbBrR": |
21 | 21 | # strip generated symbols |
22 | 22 | if name[:6] == "__mod_": continue |
23 | - # function names begin with '.' on 64-bit powerpc | |
24 | - if "." in name[1:]: name = "static." + name.split(".")[0] | |
23 | + # statics and some other optimizations adds random .NUMBER | |
24 | + name = re.sub(r'\.[0-9]+', '', name) | |
25 | 25 | sym[name] = sym.get(name, 0) + int(size, 16) |
26 | 26 | return sym |
27 | 27 |