This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: relocatable kernel support, bug #4224
- From: Roland McGrath <roland at redhat dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 22 Mar 2007 14:25:24 -0700 (PDT)
- Subject: Re: relocatable kernel support, bug #4224
I don't understand why a runtime function is involved in this at all.
The kernel is not like other modules, you always know you can refer to it
directly and know a symbol you can use. Just generate code that does:
foo_addr = vmlinux_foo_addr_const - vmlinux_stext_addr_const + &_stext;
The work will be done at load time by kernel/module.c code, and pretty
efficiently. There is no need for runtime data structures about this.
Thanks,
Roland