MemGuard - memory allocator for debugging purposes
Currently,
can only take over
malloc (,);
realloc ();
and
free ();
for a particular malloc type.
vm.memguard.desc=<memory_type>
Where memory_type is a short description of memory type to monitor. The short description of memory type is the second argument to MALLOC_DEFINE9, so one has to find it in the kernel source.
To use for memory type defined in a kernel module, one has to set vm.memguard.desc sysctl(8) variable before loading the module:
sysctl vm.memguard.desc=<memory_type>
The vm.memguard.divisor boot-time tunable is used to scale how much of kmem_map one wants to allocate for . The default is 10, so kmem_size /10 bytes will be used. The kmem_size value can be obtained via the vm.kmem_size sysctl(8) variable.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |