diff options
author | ddomingo <ddomingo@redhat.com> | 2008-11-27 08:20:25 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2008-11-27 08:20:25 +1000 |
commit | b292269455060d2f07dfa83749f9a7766c478c5a (patch) | |
tree | 684b52c7d3c598e26f22eba2f0b1db232788c526 /translate.cxx | |
parent | c41e99c8f098302a9ed2eb4fcac6ff5e7cd79cab (diff) | |
parent | c31df222427089e752256c58fceb6f077bdc53ce (diff) | |
download | systemtap-steved-b292269455060d2f07dfa83749f9a7766c478c5a.tar.gz systemtap-steved-b292269455060d2f07dfa83749f9a7766c478c5a.tar.xz systemtap-steved-b292269455060d2f07dfa83749f9a7766c478c5a.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx index 1cf7361e..41a424ed 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1287,6 +1287,11 @@ c_unparser::emit_module_exit () o->newline () << "yield ();"; // aka schedule() and then some o->newline(-2) << "} while (holdon);"; + // + o->newline() << "#ifdef STAPCONF_SYNCHRONIZE_SCHED"; + o->newline() << "synchronize_sched();"; + o->newline() << "#endif"; + // XXX: might like to have an escape hatch, in case some probe is // genuinely stuck somehow @@ -4860,6 +4865,7 @@ translate_pass (systemtap_session& s) s.op->newline() << "#include \"stat.c\""; s.op->newline() << "#include <linux/string.h>"; s.op->newline() << "#include <linux/timer.h>"; + s.op->newline() << "#include <linux/sched.h>"; s.op->newline() << "#include <linux/delay.h>"; s.op->newline() << "#include <linux/profile.h>"; s.op->newline() << "#include <linux/random.h>"; |