A new user interface for you! Read more...

File bcc-bsc1080085-detect-slab-for-slabratetop.patch of Package bcc

diff --git a/tools/slabratetop.py b/tools/slabratetop.py
index 956508b..3aee05a 100755
--- a/tools/slabratetop.py
+++ b/tools/slabratetop.py
@@ -61,7 +61,11 @@ bpf_text = """
 #include <uapi/linux/ptrace.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
+#ifdef CONFIG_SLUB
 #include <linux/slub_def.h>
+#else
+#include <linux/slab_def.h>
+#endif
 
 #define CACHE_NAME_SIZE 32