summaryrefslogtreecommitdiffstats
path: root/elaborate.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-04-06 16:11:30 -0700
committerJosh Stone <jistone@redhat.com>2009-04-06 16:48:11 -0700
commit3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023 (patch)
treef103f40f27ccc9ef67cd9780a7bb307a7d43bb53 /elaborate.h
parentb4c34c261909065b97dfccfd6df996897457193c (diff)
downloadsystemtap-steved-3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023.tar.gz
systemtap-steved-3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023.tar.xz
systemtap-steved-3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023.zip
PR10026: Read marker/tracepoint args directly
We already stash the context variables for markers and tracepoints into the locals for the probe body, but then we were using separate functions to read those locals for each particular probe body. This patch instead teaches the unparser how to emit the local name directly for those context variables. The resulting code from the translator is much simpler now.
Diffstat (limited to 'elaborate.h')
-rw-r--r--elaborate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/elaborate.h b/elaborate.h
index 0ad5b4b2..d927177b 100644
--- a/elaborate.h
+++ b/elaborate.h
@@ -129,6 +129,11 @@ struct derived_probe: public probe
void printsig_nested (std::ostream &o) const;
virtual void collect_derivation_chain (std::vector<probe*> &probes_list);
+ virtual void print_dupe_stamp(std::ostream&) {}
+ // To aid duplication elimination, print a stamp which uniquely identifies
+ // the code that will be added to the probe body. (Doesn't need to be the
+ // actual code...)
+
virtual void emit_probe_context_vars (translator_output*) {}
// From within unparser::emit_common_header, add any extra variables
// to this probe's context locals.