diff options
author | fche <fche> | 2005-08-19 21:50:42 +0000 |
---|---|---|
committer | fche <fche> | 2005-08-19 21:50:42 +0000 |
commit | 98afd80eb5038542fa3a98c75528524b5d4287b6 (patch) | |
tree | 2b968e1c8523fd50596431e09f936290220a0d29 /elaborate.h | |
parent | efc364eebf15dd7e8b6c93e155af83b6d3971752 (diff) | |
download | systemtap-steved-98afd80eb5038542fa3a98c75528524b5d4287b6.tar.gz systemtap-steved-98afd80eb5038542fa3a98c75528524b5d4287b6.tar.xz systemtap-steved-98afd80eb5038542fa3a98c75528524b5d4287b6.zip |
2005-08-19 Frank Ch. Eigler <fche@elastic.org>
PR systemtap/1209
* tapsets.cxx
* elaborate.cxx (derived_probe_builder): Add get_param function.
* elaborate.h: Declare them.
* tapsets.cxx (dwarf_query::get_*_param): Call them.
(timer_derived_probe, timer_builder): New classes.
(register_standard_tapsets): Register timer.jiffies(N) and friend.
* translate.cxx (translate_pass): #include <linux/timers.h>.
* stap.1.in: Document timer.jiffies(N) probe points.
* testsuite/buildok/fourteen.stp: New test.
2005-08-19 Frank Ch. Eigler <fche@elastic.org>
* arith.c (_stp_random_pm): New function.
Diffstat (limited to 'elaborate.h')
-rw-r--r-- | elaborate.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/elaborate.h b/elaborate.h index b4180c31..c3c35fee 100644 --- a/elaborate.h +++ b/elaborate.h @@ -137,8 +137,7 @@ struct derived_probe: public probe // ------------------------------------------------------------------------ -struct -derived_probe_builder +struct derived_probe_builder { virtual void build(systemtap_session & sess, probe* base, @@ -147,6 +146,11 @@ derived_probe_builder std::vector<probe*> & results_to_expand_further, std::vector<derived_probe*> & finished_results) = 0; virtual ~derived_probe_builder() {} + + static bool get_param (std::map<std::string, literal*> const & parameters, + const std::string& key, std::string& value); + static bool get_param (std::map<std::string, literal*> const & parameters, + const std::string& key, int64_t& value); }; |