summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index af73715e..00d64c71 100644
--- a/main.cxx
+++ b/main.cxx
@@ -108,6 +108,15 @@ usage (systemtap_session& s, int exitcode)
static void
printscript(systemtap_session& s, ostream& o)
{
+ if (s.embeds.size() > 0)
+ o << "# global embedded code" << endl;
+ for (unsigned i=0; i<s.embeds.size(); i++)
+ {
+ embeddedcode* ec = s.embeds[i];
+ ec->print (o);
+ o << endl;
+ }
+
if (s.globals.size() > 0)
o << "# globals" << endl;
for (unsigned i=0; i<s.globals.size(); i++)