summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-06-11 12:00:11 -0400
committerDave Brolley <brolley@redhat.com>2009-06-11 12:00:11 -0400
commitd4d8b581532460c89895a751df5ef64e5e5088e6 (patch)
tree04b77a48d305f9507429cd3fd248b245331a5475 /translate.cxx
parentb12c8986778619db5bec0a5e52f2d49247e6b5ba (diff)
parent6766808e165cd3ba3c8d514529e292761e7cb650 (diff)
downloadsystemtap-steved-d4d8b581532460c89895a751df5ef64e5e5088e6.tar.gz
systemtap-steved-d4d8b581532460c89895a751df5ef64e5e5088e6.tar.xz
systemtap-steved-d4d8b581532460c89895a751df5ef64e5e5088e6.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 060013bb..d9d99507 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1249,6 +1249,14 @@ c_unparser::emit_module_init ()
o->newline() << "synchronize_sched();";
o->newline() << "#endif";
+ // In case gettimeofday was started, it needs to be stopped
+ o->newline() << "#ifdef STAP_NEED_GETTIMEOFDAY";
+ o->newline() << " _stp_kill_time();"; // An error is no cause to hurry...
+ o->newline() << "#endif";
+
+ // Free up the context memory after an error too
+ o->newline() << "free_percpu (contexts);";
+
o->newline() << "return rc;";
o->newline(-1) << "}\n";
}
@@ -4903,7 +4911,7 @@ emit_symbol_data (systemtap_session& s)
ofstream kallsyms_out ((s.tmpdir + "/" + symfile).c_str());
- unwindsym_dump_context ctx = { s, kallsyms_out, 0, -1, s.unwindsym_modules };
+ unwindsym_dump_context ctx = { s, kallsyms_out, 0, ~0, s.unwindsym_modules };
// Micro optimization, mainly to speed up tiny regression tests
// using just begin probe.