This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [RFC PATCH 0/3] Djprobe improvement patches (Re: Dynamicdjprobe)
On Tue, 2005-08-02 at 13:23 -0400, Frank Ch. Eigler wrote:
> However, the right place for such an analyzer is likely not in or near
> the djprobes code at all, in much the same way that the kprobes code
> basically trusts the instruction address given by the caller. For
> example, as a part of future systemtap work, we may be able to do such
> djprobes applicability checking based on debug info.
Are you saying I might be allowed to assume that I can read the debug
info for each function in which a user wishes to insert a probe ? If so,
this would solve the hardest part of such an analyser, that is,
detecting the function boundaries (i.e., start and end address of a
function) outside of which no inside jump will jump to and inside of
which no outside jump will jump to.
Is there already some early dwarf/elf reading code in systemtap I could
reuse ?
regards,
Mathieu
--