For slub: Just enable debugging and then do a cat on
/sys/kernel/slab/<cachename>/allocs or frees to see where memory is
allocated or freed.
If you run a report on a slabcache with f.e.
slabinfo kmalloc-2048
and debugging is enabled then all functions that allocate and free objects
in kmalloc-2048 are listed.
Just doing
slabinfo
list all caches with the number of objects allocated.
--