Linux MM tree latest commits
 help / color / mirror / Atom feed
* + scripts-bloat-o-meter-describe-output-fields-in-help-text.patch added to mm-nonmm-unstable branch
       [not found] <20261126-bloat-o-meter-help-v1-1-fb0785c94bbf@igalia.com>
@ 2026-11-27  1:19 ` Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-11-27  1:19 UTC (permalink / raw)
  To: mm-commits, ynorov, vkoskiv, edumazet, mfo, akpm


The patch titled
     Subject: scripts/bloat-o-meter: describe output fields in help text
has been added to the -mm mm-nonmm-unstable branch.  Its filename is
     scripts-bloat-o-meter-describe-output-fields-in-help-text.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/scripts-bloat-o-meter-describe-output-fields-in-help-text.patch

This patch will later appear in the mm-nonmm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Mauricio Faria de Oliveira <mfo@igalia.com>
Subject: scripts/bloat-o-meter: describe output fields in help text
Date: Thu, 26 Nov 2026 19:13:00 -0300

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.

Link: https://patch.msgid.link/20261126-bloat-o-meter-help-v1-1-fb0785c94bbf@igalia.com
Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Yury Norov <ynorov@nvidia.com>
Cc: Valtteri Koskivuori <vkoskiv@gmail.com>
Cc: Eric Dumazet <edumazet@kernel.org>

 scripts/bloat-o-meter |   24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

--- a/scripts/bloat-o-meter~scripts-bloat-o-meter-describe-output-fields-in-help-text
+++ a/scripts/bloat-o-meter
@@ -9,10 +9,32 @@
 
 import sys, os, re, argparse
 from signal import signal, SIGPIPE, SIG_DFL
+from argparse import RawTextHelpFormatter
 
 signal(SIGPIPE, SIG_DFL)
 
-parser = argparse.ArgumentParser(description="Simple script used to compare the symbol sizes of 2 object files")
+description = \
+"""
+Simple script used to compare the symbol sizes of 2 object files
+
+fields:
+  add/remove:   number of symbols added in the new file / removed from the old file.
+  grow/shrink:  number of symbols in both files that had a size increase / decrease.
+  up/down:      size of symbols added plus size increase / removed plus size decrease.
+  (change):     difference between up and down sizes.
+
+  Symbol lines: symbol name, old size, new size, and size delta;
+                '-' 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.
+  chg:          percent change.
+
+  Symbols in both files with the same size are only counted in Before/After/chg.
+"""
+
+parser = argparse.ArgumentParser(description=description, formatter_class=RawTextHelpFormatter)
 group = parser.add_mutually_exclusive_group()
 group.add_argument('-c', help='categorize output based on symbol type', action='store_true')
 group.add_argument('-d', help='Show delta of Data Section', action='store_true')
_

Patches currently in -mm which might be from mfo@igalia.com are

scripts-bloat-o-meter-describe-output-fields-in-help-text.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27  1:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261126-bloat-o-meter-help-v1-1-fb0785c94bbf@igalia.com>
2026-11-27  1:19 ` + scripts-bloat-o-meter-describe-output-fields-in-help-text.patch added to mm-nonmm-unstable branch Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox