debugging kernel module __init function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux