Skip to content

Commit 198430f

Browse files
geertuakpm00
authored andcommitted
scripts/bloat-o-meter: count weak symbol sizes
Currently, bloat-o-meter does not take into account weak symbols, and thus ignores any size changes in code or data marked __weak. Fix this by handling weak code ("w"/"W") and data ("v"/"V"). Link: https://lkml.kernel.org/r/a1e7abd2571c3bbfe75345d6ee98b276d2d5c39d.1692200010.git.geert+renesas@glider.be Signed-off-by: Geert Uytterhoeven <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent ef815d2 commit 198430f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/bloat-o-meter

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ def print_result(symboltype, symbolformat):
100100
print("Total: Before=%d, After=%d, chg %+.2f%%" % (otot, ntot, percent))
101101

102102
if args.c:
103-
print_result("Function", "tT")
104-
print_result("Data", "dDbB")
103+
print_result("Function", "tTwW")
104+
print_result("Data", "dDbBvV")
105105
print_result("RO Data", "rR")
106106
elif args.d:
107-
print_result("Data", "dDbBrR")
107+
print_result("Data", "dDbBrRvV")
108108
elif args.t:
109-
print_result("Function", "tT")
109+
print_result("Function", "tTwW")
110110
else:
111-
print_result("Function", "tTdDbBrR")
111+
print_result("Function", "tTdDbBrRvVwW")

0 commit comments

Comments
 (0)