linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Equivalent of 'insmod -m' on 2.6?
@ 2003-09-10 18:05 Ravi Krishnamurthy
  2003-09-10 21:03 ` Rusty Russell
  0 siblings, 1 reply; 2+ messages in thread
From: Ravi Krishnamurthy @ 2003-09-10 18:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: rusty

Hi,

I am trying to debug a module on 2.6.0-test3 with
module-init-tools-0.9.12. But I am not able to get
the load map of the module being loaded. 'insmod'
in module-init-tools does not support the '-m' option. 
While working on 2.4, the load map given by 'insmod -m'
was very useful for debugging modules. Is there an
equivalent for 2.5/2.6 kernels?
Even the new 'struct module' does not seem to contain
all the section and relocation information. 

Please CC me on the replies since I am not subscribed
to the list.

Thanks in advance for any help.

-Ravi.


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Equivalent of 'insmod -m' on 2.6?
  2003-09-10 18:05 Equivalent of 'insmod -m' on 2.6? Ravi Krishnamurthy
@ 2003-09-10 21:03 ` Rusty Russell
  0 siblings, 0 replies; 2+ messages in thread
From: Rusty Russell @ 2003-09-10 21:03 UTC (permalink / raw)
  To: Ravi Krishnamurthy; +Cc: linux-kernel

In message <20030910180507.53891.qmail@web12301.mail.yahoo.com> you write:
> Hi,
> 
> I am trying to debug a module on 2.6.0-test3 with
> module-init-tools-0.9.12. But I am not able to get
> the load map of the module being loaded. 'insmod'
> in module-init-tools does not support the '-m' option. 

Hi Ravi!

	CONFIG_KALLSYMS is probably what you want here, along with
/proc/kallsyms.  You can, also generate the equivalent of insmod -m
from the output of /proc/modules and the symbol table in the module.

BTW, I'd generally recommend modprobe over insmod: as you will have
noticed, the new insmod is designed to be a really low-level tool.

Hope this helps,
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-11  1:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-10 18:05 Equivalent of 'insmod -m' on 2.6? Ravi Krishnamurthy
2003-09-10 21:03 ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).