Lines Matching +full:mm +full:- +full:0
1 .. SPDX-License-Identifier: GPL-2.0
12 - CONFIG_MEM_ALLOC_PROFILING
14 - CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT
16 - CONFIG_MEM_ALLOC_PROFILING_DEBUG
21 sysctl.vm.mem_profiling={0|1|never}[,compressed]
24 cannot be enabled at runtime (sysctl becomes read-only).
41 root@moria-kvm:~# sort -g /proc/allocinfo|tail|numfmt --to=iec
43 3.8M 953 mm/memory.c:4214 func:alloc_anon_folio
46 6.0M 1532 mm/filemap.c:1919 func:__filemap_get_folio
48 13M 234 block/blk-mq.c:3421 func:blk_mq_alloc_rqs
49 14M 3520 mm/mm_init.c:2530 func:alloc_large_system_hash
50 15M 3656 mm/readahead.c:247 func:page_cache_ra_unbounded
51 55M 4887 mm/slub.c:2259 func:alloc_slab_page
52 122M 31168 mm/page_ext.c:270 func:alloc_page_ext
60 - i.e. iterating over them to print them in debugfs/procfs.
64 - declares a code tag
65 - stashes a pointer to it in task_struct
66 - calls the real allocation function
67 - and finally, restores the task_struct alloc tag pointer to its previous value.
70 taking effect. This is important for allocations internal to the mm/ code that
82 - switch its allocation call to the _noprof() version, e.g. kmalloc_noprof()
84 - rename it to foo_noprof()
86 - define a macro version of foo() like so:
93 "on behalf of" some other code - for example, the rhashtable code. This way,
98 - Hook your data structure's init function, like any other allocation function.
100 - Within your init function, use the convenience macro alloc_tag_record() to
103 - Then, use the following form for your allocations:
104 alloc_hooks_tag(ht->your_saved_tag, kmalloc_noprof(...))