User Tools

Site Tools


kernel_hacking

커널 해킹 팁 페이지

momory leak detection

CONFIG_DEBUG_KMEMLEAK

# mount -t debugfs nodev /sys/kernel/debug/
# cat /sys/kernel/debug/kmemleak
# echo scan > /sys/kernel/debug/kmemleak
# echo clear > /sys/kernel/debug/kmemleak

tips

모듈 init을 순차적으로 하는 방법

/*
 * if this is compiled into the kernel, we need to ensure that the
 * class is registered before users of the class try to register lcd's
 */
postcore_initcall(lcd_class_init);
kernel_hacking.txt · Last modified: 2013/08/03 05:04 (external edit)