Suren Baghdasaryan a38568a0b4 lib: add version into /proc/allocinfo output
Add version string and a header at the beginning of /proc/allocinfo to
allow later format changes.  Example output:

> 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

[akpm@linux-foundation.org: remove stray newline from struct allocinfo_private]
Link: https://lkml.kernel.org/r/20240514163128.3662251-1-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-05-24 11:55:05 -07:00
..
2024-05-08 17:29:22 -04:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2023-11-07 12:11:26 -08:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2024-05-02 10:02:29 -06:00
2022-08-02 12:34:04 -04:00
2024-02-09 10:37:20 +01:00
2023-09-05 13:00:28 -07:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2020-07-09 08:14:01 +02:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00
2023-08-18 11:29:03 -06:00