Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a7b2d27 authored by Josh Triplett's avatar Josh Triplett Committed by Michal Marek
Browse files

scripts/bloat-o-meter: ignore changes in the size of linux_banner



linux_banner can change size due to changes in the compiler, build number,
or the user@host the system was compiled on; ignore size changes in
linux_banner entirely.

Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 849464d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@ def getsizes(file):
        if type in "tTdDbBrR":
        if type in "tTdDbBrR":
            # strip generated symbols
            # strip generated symbols
            if name[:6] == "__mod_": continue
            if name[:6] == "__mod_": continue
            if name == "linux_banner": continue
            # statics and some other optimizations adds random .NUMBER
            # statics and some other optimizations adds random .NUMBER
            name = re.sub(r'\.[0-9]+', '', name)
            name = re.sub(r'\.[0-9]+', '', name)
            sym[name] = sym.get(name, 0) + int(size, 16)
            sym[name] = sym.get(name, 0) + int(size, 16)