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

From: Mauricio Faria de Oliveira

Date: Fri Nov 27 2026 - 09:34:58 EST


On 2026-11-26 22:18, Andrew Morton wrote:
> On Thu, 26 Nov 2026 19:13:00 -0300 Mauricio Faria de Oliveira <mfo@xxxxxxxxxx> wrote:
[...]

Thanks for reviewing.

>> 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.
> _

Good catch.

However, 'selected' may be confusing as there is no context about
selection in earlier text.

In Before/After, 'all symbols' is related to the note 'Symbols in both
files with the same size ...'.
So, we could instead simplify it inline:

Before: size of symbols in old file.
After: size of symbols in new file.
chg: percent change.
'0' delta symbols (same size in both files) are
included.

Do you like this one? If so, please let me know if either a v2 or an
additional patch is preferred.

--- a/scripts/bloat-o-meter
+++ b/scripts/bloat-o-meter
@@ -25,13 +25,12 @@ fields:

Symbol lines: symbol name, old size, new size, and size delta;
'-' means symbol added/removed;
- '0' delta symbols not included.
+ '0' delta symbols (same size in both files) not
included.

- Before: size of all symbols in old file.
- After: size of all symbols in new file.
+ Before: size of symbols in old file.
+ After: size of symbols in new file.
chg: percent change.
-
- Symbols in both files with the same size are only counted in
Before/After/chg.
+ '0' delta symbols (same size in both files) are
included.
"""

Thanks,

--
Mauricio