Re: [HELP] How to get address of module

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

 



>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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux