debugging kernel modules

Michael Habermann MHabermann at
Tue Aug 6 14:31:03 EST 2002

Brian Kuschak wrote:
> But here's the question - is there any way to dump the
> module load addresses, after the fact?  'insmod -m'

If necessary, it also works without tools.

The linux kernel has the symbol module_list, which contains a linked
list of all modules. You can follow the linked list until you find your
module. Take the address of the struct module list entry (!) and add
(size_of_struct+4). Then you get to the start address of your module.

&struct module = 0xc100b000
size_of_struct = 0x60

=> .text = 0xc1000064

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list