This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]