summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorhunt <hunt>2005-09-01 09:01:31 +0000
committerhunt <hunt>2005-09-01 09:01:31 +0000
commitcd4022878f3d0444543f5b39b2d012719adfaace (patch)
treea2d685163d3efd1ae8a763f169dcfae8101227cb /translate.cxx
parent9acc32008f2ff05801e383be7d7f6ce2c6f3f403 (diff)
downloadsystemtap-steved-cd4022878f3d0444543f5b39b2d012719adfaace.tar.gz
systemtap-steved-cd4022878f3d0444543f5b39b2d012719adfaace.tar.xz
systemtap-steved-cd4022878f3d0444543f5b39b2d012719adfaace.zip
2005-09-01 Martin Hunt <hunt@redhat.com>
* translate.cxx (emit_probe): Add a call to _stp_print_flush at the end of each probe. (translate_pass): Define STP_NUM_STRINGS to be 1 for a scratch string. Include current.c and stack.c. Don't define KALLSYMS_LOOKUP_NAME or KALLSYMS_LOOKUP. Remove references to next_fmt() and stp_dbug().
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/translate.cxx b/translate.cxx
index 8c29b020..ba544934 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -888,6 +888,7 @@ c_unparser::emit_probe (derived_probe* v, unsigned i)
// XXX: uninitialize locals
+ o->newline(1) << "_stp_print_flush();";
o->newline(-1) << "}" << endl;
v->emit_probe_entries (o, i);
@@ -2316,12 +2317,12 @@ translate_pass (systemtap_session& s)
s.op->newline() << "#if TEST_MODE";
s.op->newline() << "#include \"runtime.h\"";
s.op->newline() << "#else";
+ s.op->newline() << "#define STP_NUM_STRINGS 1";
s.op->newline() << "#include \"runtime.h\"";
+ s.op->newline() << "#include \"current.c\"";
+ s.op->newline() << "#include \"stack.c\"";
s.op->newline() << "#include <linux/string.h>";
s.op->newline() << "#include <linux/timer.h>";
- // XXX
- s.op->newline() << "#define KALLSYMS_LOOKUP_NAME \"\"";
- s.op->newline() << "#define KALLSYMS_LOOKUP 0";
// some older kernels don't have read_trylock, so pessimize.
// XXX: maybe read_trylock is never actually necessary
// for deadlock avoidance
@@ -2385,9 +2386,6 @@ translate_pass (systemtap_session& s)
s.op->newline(-1) << "}";
s.op->newline();
s.op->newline() << "void probe_exit () {";
- // XXX: need to reference these static functions for -Werror avoidance
- s.op->newline(1) << "if (0) next_fmt ((void *) 0, (void *) 0);";
- s.op->newline() << "if (0) _stp_dbug(\"\", 0, \"\");";
s.op->newline() << "systemtap_module_exit ();";
s.op->newline(-1) << "}";