Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no way to enable kmemleak
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
chilek
n00b
n00b


Joined: 13 Sep 2009
Posts: 3

PostPosted: Wed Jun 15, 2016 10:33 am    Post subject: no way to enable kmemleak Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum