probing a plt

Frank Ch. Eigler fche@redhat.com
Fri Sep 2 21:21:00 GMT 2011


Stan Cox <scox@redhat.com> writes:

> This is small example showing how a plt may possibly be probed.  

Looks like a good start!

> [...] Currently the only possibility is probing every plt entry in a
> module.  Suggestions for further refinements? [...]
>     probe process("./12215.x").plt {printf ("plt-entry=%s\n",$$name)}

The natural one is to parametrize .plt() with the entry name/wildcard,
which should be available (since you're returning it for $$name).  (It
might also be useful to support .plt(N) for table index N.)

A later step could be to use that name as a heuristic lookup into
libraries that may resolve the same-named function, to find some
possibly-applicable dwarf location data for resolving $context
variables.

- FChE



More information about the Systemtap mailing list