lkml.org 
[lkml]   [2005]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [HELP] How to get address of module

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

\
 
 \ /
  Last update: 2005-08-09 09:13    [W:0.051 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site