Skip to contentSkip to conversation

lib-add-version-into-proc-allocinfo-output.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message May 24, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib: add version into /proc/allocinfo output
has been removed from the -mm tree. Its filename was
lib-add-version-into-proc-allocinfo-output.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Suren Baghdasaryan <[email protected]>
Subject: lib: add version into /proc/allocinfo output
Date: Tue, 14 May 2024 09:31:28 -0700

Add version string and a header at the beginning of /proc/allocinfo to allow later format changes. Example output:

Quoted 1 line

head /proc/allocinfo

allocinfo - version: 1.0
# <size> <calls> <tag info>

           0        0 init/main.c:1314 func:do_initcalls
           0        0 init/do_mounts.c:353 func:mount_nodev_root
           0        0 init/do_mounts.c:187 func:mount_root_generic
           0        0 init/do_mounts.c:158 func:do_mount_root
           0        0 init/initramfs.c:493 func:unpack_to_rootfs
           0        0 init/initramfs.c:492 func:unpack_to_rootfs
           0        0 init/initramfs.c:491 func:unpack_to_rootfs
         512        1 arch/x86/events/rapl.c:681 func:init_rapl_pmus
         128        1 arch/x86/events/rapl.c:571 func:rapl_cpu_online

---

 Documentation/filesystems/proc.rst |    5 +-
 lib/alloc_tag.c                    |   47 ++++++++++++++++++---------
 2 files changed, 35 insertions(+), 17 deletions(-)
Documentation/filesystems/proc.rst renamed from Documentation/filesystems/proc.rst~lib-add-version-into-proc-allocinfo-output +3 -2
@@ -961,13 +961,14 @@ Provides information about memory alloca
 base. Each allocation in the code is identified by its source file, line
 number, module (if originates from a loadable module) and the function calling
 the allocation. The number of bytes allocated and number of calls at each
-location are reported.
+location are reported. The first line indicates the version of the file, the
+second line is the header listing fields in the file.
 
 Example output.
 
 ::
 
-    > sort -rn /proc/allocinfo
+    > tail -n +3 /proc/allocinfo | sort -rn
    127664128    31168 mm/page_ext.c:270 func:alloc_page_ext
     56373248     4737 mm/slub.c:2259 func:alloc_slab_page
     14880768     3633 mm/readahead.c:247 func:page_cache_ra_unbounded
lib/alloc_tag.c renamed from lib/alloc_tag.c~lib-add-version-into-proc-allocinfo-output +32 -15

92 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are