debuginfoless static user probes

Stan Cox scox@redhat.com
Mon May 10 17:48:00 GMT 2010


On 05/04/2010 12:57 PM, Frank Ch. Eigler wrote:

> Can we hard-code this kind of lookup table inside the translator?


> embedded-C *expressions* in the parse tree, so that the tapset-mark.cxx code
> could emit the equivalent of
>       val = %{ (int64_t) k_fetch_register(0) %}


tapsets.cxx (sdt_uprobe_var_expanding_visitor): Moved register lookup table 
into the translator.
(sdt_uprobe_var_expanding_visitor::visit_target_symbol): Properly handle v1 
uprobes.  Use fetch_register to fetch arguments

sdt.h (STAP_SDT_V1):  Define if host isn't x86.
(args1, ..., args10):  Variadic macro is cleaner, but unfortunately gets -ansi 
-pedantic warning
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ,stap.diff
URL: <http://sourceware.org/pipermail/systemtap/attachments/20100510/ee6962cf/attachment.ksh>


More information about the Systemtap mailing list