Thread (4 messages) flat view 4 messages, 3 authors, 2002-08-06

Re: debugging kernel modules

From: Michael Habermann <hidden>
Date: 2002-08-06 04:31:03

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.

E.g.:
&struct module = 0xc100b000
size_of_struct = 0x60

=> .text = 0xc1000064


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help