Kernel Memory Allocator Walkers
- allocdby
-
Given the address of a
kthread_t
structure as a starting point, iterate over the set ofbufctl
structures corresponding to memory allocations performed by this kernel thread. - bufctl
-
Given the address of a
kmem_cache_t
structure as a starting point, iterate over the set of allocatedbufctl
s associated with this cache. - freectl
-
Given the address of a
kmem_cache_t
structure as a starting point, iterate over the set of freebufctl
s associated with this cache. - freedby
-
Given the address of a
kthread_t
structure as a starting point, iterate over the set ofbufctl
structures corresponding to memory deallocations performed by this kernel thread. - freemem
-
Given the address of a
kmem_cache_t
structure as a starting point, iterate over the set of free buffers associated with this cache. - kmem
-
Given the address of a
kmem_cache_t
structure as a starting point, iterate over the set of allocated buffers associated with this cache. - kmem_cache
-
Iterate over the active set of
kmem_cache_t
structures. This structure is defined in<sys/kmem_impl.h>
. - kmem_cpu_cache
-
Given the address of a
kmem_cache_t
structure as a starting point, iterate over the per-CPUkmem_cpu_cache_t
structures associated with this cache. This structure is defined in<sys/kmem_impl.h>
. - kmem_slab
-
Given the address of a
kmem_cache_t
structure as a starting point, iterate over the set of associatedkmem_slab_t
structures. This structure is defined in<sys/kmem_impl.h>
. - kmem_log
-
Iterate over the set of
bufctl
s stored in the kmem allocator transaction log. - leak
-
Given the address of a
bufctl
structure, iterate over the set ofbufctl
structures corresponding to leaked memory buffers with similar allocation stack traces. The::findleaks
dcmd must be applied to locate memory leaks before the leak walker can be used - leakbuf
-
Given the address of a
bufctl
structure, iterate over the set of buffer addresses corresponding to leaked memory buffers with similar allocation stack traces. The::findleaks
dcmd must be applied to locate memory leaks before theleakbuf
walker can be used.