Re: [PATCH] scripts/bloat-o-meter: describe output fields in help text

From: Andrew Morton

Date: Thu Nov 26 2026 - 20:18:49 EST


On Thu, 26 Nov 2026 19:13:00 -0300 Mauricio Faria de Oliveira <mfo@xxxxxxxxxx> wrote:

> First time users of the bloat-o-meter script might not understand what
> its output fields mean (add/remove, grow/shrink, up/down, Before/After),
> and even occasional users might eventually forget.
>
> Describe the output fields in the help text, so it is quick to find out.
>
> RawTextHelpFormatter is used in order to keep line breaks in place.
>

Nice, thanks.

RawTextHelpFormatter has apparently been in argparse since 2011 so
there's no breakage risk.

> Before: size of all symbols in old file.
> After: size of all symbols in new file.

LLM suggested a little adjustment here. wdyt?

From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: scripts/bloat-o-meter: clarify Before and After help text
Date: Thu, 26 Nov 2026 17:15:17 -0800

bloat-o-meter selects symbol types according to its options and filters
some names. Mauricio Faria de Oliveira's new help text describes Before
and After as the sizes of all symbols in each file, which includes
symbols that the script does not count. Say "selected symbols" instead.

--- a/scripts/bloat-o-meter~scripts-bloat-o-meter-describe-output-fields-in-help-text-fix
+++ a/scripts/bloat-o-meter
@@ -27,8 +27,8 @@ fields:
'-' means symbol added/removed;
'0' delta symbols not included.

- Before: size of all symbols in old file.
- After: size of all symbols in new file.
+ Before: size of selected symbols in old file.
+ After: size of selected symbols in new file.
chg: percent change.

Symbols in both files with the same size are only counted in Before/After/chg.
_