From: Michael Habermann <MHabermann@gmx.de>
To: Brian Kuschak <bkuschak@yahoo.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: debugging kernel modules
Date: Tue, 06 Aug 2002 06:31:03 +0200 [thread overview]
Message-ID: <3D4F5107.2040606@gmx.de> (raw)
In-Reply-To: 20020805230054.71397.qmail@web40207.mail.yahoo.com
Brian Kuschak wrote:
> But here's the question - is there any way to dump the
> module load addresses, after the fact? 'insmod -m'
If necessary, it also works without tools.
The linux kernel has the symbol module_list, which contains a linked
list of all modules. You can follow the linked list until you find your
module. Take the address of the struct module list entry (!) and add
(size_of_struct+4). Then you get to the start address of your module.
E.g.:
&struct module = 0xc100b000
size_of_struct = 0x60
=> .text = 0xc1000064
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-08-06 4:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-05 23:00 debugging kernel modules Brian Kuschak
2002-08-05 23:14 ` Daniel L. Taylor
2002-08-06 2:43 ` Brian Kuschak
2002-08-06 4:31 ` Michael Habermann [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-08-06 1:12 Ken Chou
2002-08-06 6:53 ` Wolfgang Denk
[not found] <20020809010652.6470.qmail@web40201.mail.yahoo.com>
2002-08-09 7:15 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D4F5107.2040606@gmx.de \
--to=mhabermann@gmx.de \
--cc=bkuschak@yahoo.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.