From 912e8c5926abb587638f8e482c7f714bc5cda758 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 6 May 2009 16:43:51 -0700 Subject: Separate built-in timer tapsets All of the timer.* tapsets are now built and handled in their own tapset-timers.cxx, as the first step of many to pare down the current monolithic tapsets.cxx. --- tapsets.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'tapsets.h') diff --git a/tapsets.h b/tapsets.h index 406a69d9..eb8a5072 100644 --- a/tapsets.h +++ b/tapsets.h @@ -13,12 +13,27 @@ #include "staptree.h" #include "elaborate.h" -struct derived_probe_group; - void register_standard_tapsets(systemtap_session& sess); std::vector all_session_groups(systemtap_session& s); int dwfl_report_offline_predicate (const char* modname, const char* filename); +void common_probe_entryfn_prologue (translator_output* o, std::string statestr, + std::string new_pp, bool overload_processing = true); +void common_probe_entryfn_epilogue (translator_output* o, bool overload_processing = true); + +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. +template struct generic_dpg: public derived_probe_group +{ +protected: + std::vector probes; +public: + generic_dpg () {} + void enroll (DP* probe) { probes.push_back (probe); } +}; #endif // TAPSETS_H -- cgit