debugging kernel module __init function?

Nicholas Murphy halcyonic at gmail.com
Tue Aug 4 15:23:18 EDT 2015


I can’t for the life of me figure out how to set a breakpoint on a kernel module’s __init function.  Everything I’ve read talks about using add-symbol-file with the values for .text, .bss, and .data after the module is loaded, a la:

https://www.linux.com/learn/linux-training/33991-the-kernel-newbie-corner-kernel-and-module-debugging-with-gdb

How do I debug the __init function (that is called on module load)?

Thanks,
Nick


More information about the Kernelnewbies mailing list