From cd4022878f3d0444543f5b39b2d012719adfaace Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 1 Sep 2005 09:01:31 +0000 Subject: [PATCH] 2005-09-01 Martin Hunt * 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(). --- ChangeLog | 9 +++++++++ translate.cxx | 10 ++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index dd54c3379..6e5afe695 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-09-01 Martin Hunt + + * 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(). + 2005-08-31 Graydon Hoare PR systemtap/1258 diff --git a/translate.cxx b/translate.cxx index 8c29b0205..ba544934d 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 "; s.op->newline() << "#include "; - // 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) << "}"; -- 2.43.5