From: aftnix@gmail.com (Arif Hossain)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Getting address of a symbol from kernel's symbol table.
Date: Mon, 03 Dec 2012 18:50:59 +0600 [thread overview]
Message-ID: <50BCA033.5000907@gmail.com> (raw)
In-Reply-To: <CAGdaadZqqMGf8wcQkM5kA3SB3zBg3y3izBCqqRfrQg3yxBxA9A@mail.gmail.com>
On 12/02/2012 09:49 PM, Mulyadi Santosa wrote:
> Hi...
>
> On Sun, Dec 2, 2012 at 5:43 PM, arif <aftnix@gmail.com> wrote:
>> To be able to do that i need the address of the function.
>>
>> I've seen that from user space i can read /proc/kallsyms to get an
>> address of a symbol. Is their any similar mechanism exist where i can
>> read the symbol table to extract a symbol's address from kernel space?
>
> check http://lxr.linux.no/#linux+v3.6.8/include/linux/kallsyms.h
>
> I have a good guess, what you need is kallsyms_on_each_symbol()
>
Thanks for the pointer. I'm testing what can be done.
--
Cheers
arif
next prev parent reply other threads:[~2012-12-03 12:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-02 10:43 Getting address of a symbol from kernel's symbol table arif
2012-12-02 15:49 ` Mulyadi Santosa
2012-12-03 12:50 ` Arif Hossain [this message]
2012-12-03 23:46 ` Mulyadi Santosa
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=50BCA033.5000907@gmail.com \
--to=aftnix@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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 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).