Skip to content

Commit

Permalink
kbuild, bloat-o-meter: fix static detection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and michal42 committed Nov 6, 2013
1 parent f3462aa commit 21cf6e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bloat-o-meter
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def getsizes(file):
if type in "tTdDbBrR":
# strip generated symbols
if name[:6] == "__mod_": continue
# function names begin with '.' on 64-bit powerpc
if "." in name[1:]: name = "static." + name.split(".")[0]
# statics and some other optimizations adds random .NUMBER
name = re.sub(r'\.[0-9]+', '', name)
sym[name] = sym.get(name, 0) + int(size, 16)
return sym

Expand Down

0 comments on commit 21cf6e5

Please sign in to comment.