diff options
author | dsmith <dsmith> | 2006-11-30 16:09:09 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2006-11-30 16:09:09 +0000 |
commit | 83d7fcdcf15d300c7d6079b0c90076d8c365078c (patch) | |
tree | 23024224523438129216305968ce5deed8218006 | |
parent | 8c8199218f27704ae26be7ad2ad4e34f95f5221c (diff) | |
download | systemtap-steved-83d7fcdcf15d300c7d6079b0c90076d8c365078c.tar.gz systemtap-steved-83d7fcdcf15d300c7d6079b0c90076d8c365078c.tar.xz systemtap-steved-83d7fcdcf15d300c7d6079b0c90076d8c365078c.zip |
2006-11-30 David Smith <dsmith@redhat.com>
* main.cxx (printscript): Prints global embedded code. Not
printing the global embedded code was causing bad caching
behavior.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | main.cxx | 9 |
2 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2006-11-30 David Smith <dsmith@redhat.com> + + * main.cxx (printscript): Prints global embedded code. Not + printing the global embedded code was causing bad caching + behavior. + 2006-11-29 David Smith <dsmith@redhat.com> * tapsets.cxx (struct dwarf_var_expanding_copy_visitor): Added @@ -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++) |