Skip to content
Commit 780138b1 authored by Casey Chen's avatar Casey Chen Committed by Andrew Morton
Browse files

alloc_tag: check mem_profiling_support in alloc_tag_init

If mem_profiling_support is false, for example by
sysctl.vm.mem_profiling=never, alloc_tag_init should skip module tags
allocation, codetag type registration and procfs init.

Link: https://lkml.kernel.org/r/20250513182602.121843-1-cachen@purestorage.com


Signed-off-by: default avatarCasey Chen <cachen@purestorage.com>
Reviewed-by: default avatarYuanyuan Zhong <yzhong@purestorage.com>
Acked-by: default avatarSuren Baghdasaryan <surenb@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6a4b3551
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment