summaryrefslogtreecommitdiffstats
path: root/staptree.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 /staptree.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 'staptree.h')
-rw-r--r--staptree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/staptree.h b/staptree.h
index 5125cd85..7e9506bb 100644
--- a/staptree.h
+++ b/staptree.h
@@ -231,6 +231,7 @@ struct target_symbol: public symbol
};
std::string base_name;
std::vector<std::pair<component_type, std::string> > components;
+ std::string probe_context_var;
semantic_error* saved_conversion_error;
target_symbol(): saved_conversion_error (0) {}
void print (std::ostream& o) const;