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: debuginfoless static user probes


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

Attachment: ,stap.diff
Description: Text document


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