summaryrefslogtreecommitdiffstats
path: root/elaborate.h
diff options
context:
space:
mode:
authorhiramatu <hiramatu>2007-11-20 21:03:16 +0000
committerhiramatu <hiramatu>2007-11-20 21:03:16 +0000
commitcbbe8080060563441ba79ed4645e9b533a870409 (patch)
treec40367e5311e9e80f0ad30a2edbc3362946193d8 /elaborate.h
parent57b1f4642f87f69b58705f2a7c2f92de1348b0cc (diff)
downloadsystemtap-steved-cbbe8080060563441ba79ed4645e9b533a870409.tar.gz
systemtap-steved-cbbe8080060563441ba79ed4645e9b533a870409.tar.xz
systemtap-steved-cbbe8080060563441ba79ed4645e9b533a870409.zip
2007-11-20 Masami Hiramatsu <mhiramat@redhat.com>
PR 4935. * parse.cxx (parser::parse_probe_point): Parse "if" condition following probe point. * staptree.h (probe_point): Add "condition" field. (probe): Add "condition" field and "add_condition" method. (deep_copy_visitor): Add "deep_copy" method for the expression. * staptree.cxx (probe_point::probe_point): Initalize it. (probe::add_condition): Implement it. (probe::print): Output "condition" field. (probe::str): Ditto. (deep_copy_visitor::deep_copy): Implement it. * elaborate.h (derived_probe): Add "insert_condition_statement" method. * elaborate.cxx (derived_probe::derived_probe): Initialize "condition" field, and insert a condition check routine on the top of body. (derived_probe::insert_condition_statement): Implement it. (alias_expansion_builder::build): Pass the condition from the alias referer to new alias. * tapsets.cxx (be_derived_probe): Remove unused constructor. (dwarf_derived_probe::dwarf_derived_probe): Insert a condition check routine on the top of body. (mark_derived_probe::mark_derived_probe): Ditto. (mark_builder::build): Pass the base location to mark_derived_probe.
Diffstat (limited to 'elaborate.h')
-rw-r--r--elaborate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/elaborate.h b/elaborate.h
index 6967e1e7..13246b86 100644
--- a/elaborate.h
+++ b/elaborate.h
@@ -118,6 +118,7 @@ struct derived_probe: public probe
virtual probe_point* sole_location () const;
virtual void printsig (std::ostream &o) const;
void printsig_nested (std::ostream &o) const;
+ void insert_condition_statement (void);
virtual void collect_derivation_chain (std::vector<derived_probe*> &probes_list);
virtual void emit_probe_context_vars (translator_output*) {}