Commit 780138b
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: Casey Chen <cachen@purestorage.com>
Reviewed-by: Yuanyuan Zhong <yzhong@purestorage.com>
Acked-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 6a4b355 commit 780138b
1 file changed
Lines changed: 19 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | 247 | | |
259 | 248 | | |
260 | 249 | | |
| |||
762 | 751 | | |
763 | 752 | | |
764 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
765 | 767 | | |
766 | | - | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
767 | 771 | | |
| 772 | + | |
768 | 773 | | |
769 | 774 | | |
770 | 775 | | |
| 776 | + | |
771 | 777 | | |
| 778 | + | |
772 | 779 | | |
773 | 780 | | |
774 | 781 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | 782 | | |
779 | 783 | | |
780 | 784 | | |
0 commit comments