RE: finding out module name from an address ?

From: Rajeev Bector (rajeev_bector@yahoo.com)
Date: Thu Aug 02 2001 - 19:44:17 EST


I searched around. Cant find it. I just
have to write a find_mod_by_add() which
takes in an address and walks the module_list
to find if the address falls within mod + size
for any particular module. I am not sure if
module_list is exported though.

Thanks !
Rajeev

|-----Original Message-----
|From: Keith Owens [mailto:kaos@ocs.com.au]
|Sent: Thursday, August 02, 2001 5:28 PM
|To: Rajeev Bector
|Cc: Linux-Kernel
|Subject: Re: finding out module name from an address ?
|
|
|On Thu, 2 Aug 2001 13:39:12 -0700,
|"Rajeev Bector" <rajeev_bector@yahoo.com> wrote:
|>__builtin_return_address(0). From that address,
|>is there a clean way to figure out if the address
|>belongs to a loadable module and if yes, get
|>to the module structure of that module so
|>that I can log on the basis of module->name
|
|Kai Germaschewski sent a patch to l-k a couple of days ago that has the
|code you need. Search the l-k archives for 'disable module
|backtraces'.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
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/



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:25 EST