Debug always make developer sad, especially in a big system. How to debug in Linux Kernel?
Tracing
In early kernel patch, we have some tracing tools, e.g. strace, gdb. They are all based on the old tracing system call: ptrace.
GDB
gdb -q test.o
strace