From 7a212aa8e893ad29acca3e80e1af01de0b894305 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 6 May 2009 18:52:46 -0700 Subject: Separate the procfs tapset --- tapsets.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tapsets.h') diff --git a/tapsets.h b/tapsets.h index cf83b5e3..ba322d44 100644 --- a/tapsets.h +++ b/tapsets.h @@ -21,8 +21,10 @@ void common_probe_entryfn_prologue (translator_output* o, std::string statestr, void common_probe_entryfn_epilogue (translator_output* o, bool overload_processing = true); void register_tapset_been(systemtap_session& sess); +void register_tapset_procfs(systemtap_session& sess); void register_tapset_timers(systemtap_session& sess); + // ------------------------------------------------------------------------ // Generic derived_probe_group: contains an ordinary vector of the // given type. It provides only the enrollment function. @@ -36,6 +38,19 @@ public: void enroll (DP* probe) { probes.push_back (probe); } }; + +// ------------------------------------------------------------------------ +// An update visitor that allows replacing assignments with a function call + +struct var_expanding_visitor: public update_visitor +{ + static unsigned tick; + std::stack target_symbol_setter_functioncalls; + + var_expanding_visitor() {} + void visit_assignment (assignment* e); +}; + #endif // TAPSETS_H /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */ -- cgit