diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-13 02:39:24 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-29 20:22:25 -0400 |
commit | ffb8da3c0bd7f22050c39a3114286e01ead8b671 (patch) | |
tree | e2715077b3a31fe65575ef9f598c5b7f8efdb3ea /mm/slab.h | |
parent | 2ab06f4209552fd2de50a74804ad866181c9e641 (diff) |
mem profiling: Runtime switchmemalloc_prof_v1
This converts the boot switch to a sysctl, which can be changed at
runtime when CONFIG_MEM_ALLOC_PROFILING_DEBUG=n
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'mm/slab.h')
-rw-r--r-- | mm/slab.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/slab.h b/mm/slab.h index 50d86008a86a..511086b1364c 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -535,9 +535,6 @@ static inline void alloc_tagging_slab_free_hook(struct kmem_cache *s, struct sla struct slabobj_ext *obj_exts; int i; - if (!mem_alloc_profiling_enabled()) - return; - obj_exts = slab_obj_exts(slab); if (!obj_exts) return; |