diff options
Diffstat (limited to 'tapsets.h')
-rw-r--r-- | tapsets.h | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -13,8 +13,26 @@ #include "staptree.h" #include "elaborate.h" + +// Helper class for describing builtin functions. Calls to builtins +// are typechecked and emitted, but the builtin definitions are *not* +// emitted by the translator (in fact, they have no definitions in +// systemtap language); they are assumed to exist outside the +// translator, in the runtime library. + +class +builtin_function +{ + functiondecl *f; + token *id(std::string const & name); + public: + builtin_function(exp_type e, std::string const & name); + builtin_function & arg(exp_type e, std::string const & name); + void bind(systemtap_session & sess); +}; + void -register_standard_tapsets(match_node * root); +register_standard_tapsets(systemtap_session & sess); #endif // TAPSETS_H |