Hi -
On Thu, Jul 17, 2008 at 03:12:26PM -0500, James Bottomley wrote:
Thank you for your response.
Actually, "we" as in systemtap could do it just fine if that were
desired. And really _stext is therefore an arbitrary choice - it
could be any other reference.
My point is that the proposed effort to identify a nearby function
symbol to use as a base for each probe's symbol+offset calculation is
wasted.
What's between _text and _stext appears to consist of kernel boot-time
functions that are unmapped the time anything like systemtap could
run.
By "dangerous" do you only mean that it may require a one-liner
catch-up patch in systemtap if the kernel linker scripts change?
Kernel init sections are unprobeable by definition, so that doesn't
matter. Modules are also irrelevant, since their addresses are
relative to their relocation bases / sections, not to a kernel
(vmlinux) symbol.
- FChE
--