summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-04-11 13:37:07 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-04-11 13:37:07 -0400
commitbf50bb491c5bfcf3035de45ac58acf11ed02af06 (patch)
tree2ea9006cb818783ccf7f026500a092903df869db /translate.cxx
parent68eef6bdafca37b9b05dbc6d773a642ccafd9962 (diff)
parent48899faa2d1280f7715b0abf892fb8b4b5c8ff43 (diff)
downloadsystemtap-steved-bf50bb491c5bfcf3035de45ac58acf11ed02af06.tar.gz
systemtap-steved-bf50bb491c5bfcf3035de45ac58acf11ed02af06.tar.xz
systemtap-steved-bf50bb491c5bfcf3035de45ac58acf11ed02af06.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
* 'master' of git://sources.redhat.com/git/systemtap: 2008-04-11 David Smith <dsmith@redhat.com> 2008-04-11 David Smith <dsmith@redhat.com> 2008-04-11 David Smith <dsmith@redhat.com>
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/translate.cxx b/translate.cxx
index c9ec094a..ba848d43 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -849,6 +849,11 @@ translator_output::line ()
void
c_unparser::emit_common_header ()
{
+ vector<derived_probe_group*> g = all_session_groups (*session);
+ for (unsigned i=0; i<g.size(); i++)
+ g[i]->emit_module_header (*session);
+
+ o->newline();
o->newline() << "typedef char string_t[MAXSTRINGLEN];";
o->newline();
o->newline() << "#define STAP_SESSION_STARTING 0";
@@ -4526,10 +4531,6 @@ translate_pass (systemtap_session& s)
s.op->newline() << "#define read_trylock(x) ({ read_lock(x); 1; })";
s.op->newline() << "#endif";
- s.op->newline() << "#if defined(CONFIG_MARKERS)";
- s.op->newline() << "#include <linux/marker.h>";
- s.op->newline() << "#endif";
-
s.up->emit_common_header (); // context etc.
for (unsigned i=0; i<s.embeds.size(); i++)