summaryrefslogtreecommitdiff
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2022-07-31 10:48:17 -0700
committerSuren Baghdasaryan <surenb@google.com>2024-02-10 16:31:15 -0800
commitea582c3d80cc22a32047b2bfd8e36c0afbe27a9e (patch)
treef3ddf14bc65b7e1e0156e7330e7265ea1a82b732 /lib/net_utils.c
parent83efa49f07df5306215c4f25808a476bc43f390a (diff)
lib: add allocation tagging support for memory allocation profiling
Introduce CONFIG_MEM_ALLOC_PROFILING which provides definitions to easily instrument memory allocators. It registers an "alloc_tags" codetag type with /proc/allocinfo interface to output allocation tag information when the feature is enabled. CONFIG_MEM_ALLOC_PROFILING_DEBUG is provided for debugging the memory allocation profiling instrumentation. Memory allocation profiling can be enabled or disabled at runtime using /proc/sys/vm/mem_profiling sysctl when CONFIG_MEM_ALLOC_PROFILING_DEBUG=n. CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT enables memory allocation profiling by default. Signed-off-by: Suren Baghdasaryan <surenb@google.com> Co-developed-by: Kent Overstreet <kent.overstreet@linux.dev> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions