chilek n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Sep 2009 Posts: 3
|
Posted: Wed Jun 15, 2016 10:33 am Post subject: no way to enable kmemleak |
|
|
I've not found the way to enable kmemleak in sys-kernel/gentoo-sources kernel 4.4.6 (also tried 4.4.13)
Kernel config file options which are required to kmemleak as below:
Code: |
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_KERNEL=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
CONFIG_DEBUG_KMEMLEAK_TEST=m
CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y
|
Grub2 kernel boot params:
Code: |
root=/dev/mapper/vg_router-lv_root ro doscsi domdadm dolvm kmemleak=on
|
Kernel command line from started system:
Code: |
# cat /proc/cmdline
BOOT_IMAGE=/kernel-4.4.13-gentoo root=/dev/mapper/vg_router-lv_root ro doscsi domdadm dolvm kmemleak=on
|
There is no any line with kmemleak string in dmesg output:
Code: |
# dmesg |grep -i kmemleak
#
|
No /sys/kernel/debug/kmemleak file neither:
Code: |
# find /sys/kernel/debug -iname '*kmemleak*'
#
|
Debugfs is mounted anyway:
Code: |
# grep debug /proc/mounts
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
|
What's going on? Have you ever had this kind of problem earlier?
Bests, Tomasz Chiliński |
|