tools/slabratetop: detect the current memory allocator
Currently, slabratetop always included slub_def.h. For the system uses
SLAB, the definition of 'struct kmem_cache' is different and the eBPF
program would fetch the wrong field and print garbages.
Signed-off-by: Gary Lin <glin@suse.com>
Showing
Please register or sign in to comment