What is the most efficient and elegant way develop/debug linux kernel
问题 Recently I start to develop the linux device driver, I face a problem, when I want to debug with kernel code, and add some printk debug message in the kernel file. for example, recently I add some printk() and dump_stack() in the __debug_locks_off() which resides in include/linux/debug_locks.h . Then I do the following steps, which is very time consuming. make clean make bzImage make modules make modules_install mkinitrfmfs -o /boot/initrd.img 3.12.6[my kernel version] cp arch/x86/boot