Re: [HELP] How to get address of module

From: Jan Engelhardt
Date: Tue Aug 09 2005 - 02:10:27 EST



>What I wanted is: given the segfault address, I would like to
>
>1) get which module it is in
>2) in that module, within which function it segfaulted
>
>module_address_lookup would do!

If a kernel oopses or similar, it already prints where it faulted:

EIP is at schedule_timeout+0x1234/abcde

If you have the EIP, you can look at /proc/modules to find the module, and
then use "nm" to find the function. Note that inlining makes "nm" and
objdumpers less effective.



Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/