Enable memory allocation profiling

modulename: alloc_tag.ko

configname: CONFIG_MEM_ALLOC_PROFILING

Linux Kernel Configuration
└─>Kernel hacking
└─>Memory Debugging
└─>Enable memory allocation profiling
In linux kernel since version 4.19.318 (release Date: 2024-07-18)  
Track allocation source code and record total allocation size
initiated at that code location. The mechanism can be used to track
memory leaks with a low performance and memory impact.

source code: