User Tools

Site Tools


kernel_hacking

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
kernel_hacking [2009/11/27 17:34] – created suapapakernel_hacking [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +커널 해킹 팁 페이지
 +====== momory leak detection ======
 +CONFIG_DEBUG_KMEMLEAK 
 +<code bash>
 +# mount -t debugfs nodev /sys/kernel/debug/
 +# cat /sys/kernel/debug/kmemleak
 +# echo scan > /sys/kernel/debug/kmemleak
 +# echo clear > /sys/kernel/debug/kmemleak
 +</code>
 +====== tips ======
 +모듈 init을 순차적으로 하는 방법
 +<code c>
 +/*
 + * 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);
 +</code>
 +
   *[[http://elinux.org/Kgdb|kdbg]]   *[[http://elinux.org/Kgdb|kdbg]]
kernel_hacking.1259343270.txt.gz · Last modified: 2013/08/03 05:04 (external edit)