diff options
author | fche <fche> | 2006-01-15 17:26:18 +0000 |
---|---|---|
committer | fche <fche> | 2006-01-15 17:26:18 +0000 |
commit | 315b86df3e95c631b678d98b5d0ca7a380f1fed4 (patch) | |
tree | 3896e5c0aae285f45f04796c27dcc2a3e952dcae | |
parent | 2cfb0e462faa1bbfe585cdddc46ae70c1650cb58 (diff) | |
download | systemtap-steved-315b86df3e95c631b678d98b5d0ca7a380f1fed4.tar.gz systemtap-steved-315b86df3e95c631b678d98b5d0ca7a380f1fed4.tar.xz systemtap-steved-315b86df3e95c631b678d98b5d0ca7a380f1fed4.zip |
2006-01-15 Frank Ch. Eigler <fche@elastic.org>
PR 2148
* translate.cxx (MAXERRORS): Actually the max should be 0, so first
error aborts session.
* Revert last stp_exit change.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | runtime/ChangeLog | 4 | ||||
-rw-r--r-- | runtime/io.c | 3 | ||||
-rw-r--r-- | tapset/ChangeLog | 5 | ||||
-rw-r--r-- | tapset/logging.stp | 1 | ||||
-rw-r--r-- | translate.cxx | 2 |
6 files changed, 16 insertions, 5 deletions
@@ -1,3 +1,9 @@ +2006-01-15 Frank Ch. Eigler <fche@elastic.org> + + PR 2148 + * translate.cxx (MAXERRORS): Actually the max should be 0, so first + error aborts session. + 2006-01-13 Frank Ch. Eigler <fche@elastic.org> * main.cxx (main): Suppress "Try again with -v" message if already diff --git a/runtime/ChangeLog b/runtime/ChangeLog index e9989806..d3bf202a 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,7 @@ +2006-01-15 Frank Ch. Eigler <fche@elastic.org> + + * io.c (_stp_exit): Revert. + 2006-01-10 Martin Hunt <hunt@redhat.com> * io.c (_stp_exit): set STAP_SESSION_STOPPING. diff --git a/runtime/io.c b/runtime/io.c index 5c7a5f10..b72590f3 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -116,9 +116,6 @@ void _stp_warn (const char *fmt, ...) */ void _stp_exit (void) { -#ifdef SYSTEMTAP - atomic_set (&session_state, STAP_SESSION_STOPPING); -#endif _stp_exit_flag = 1; } diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 834e3504..0313e589 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,6 +1,9 @@ +2006-01-15 Frank Ch. Eigler <fche@elastic.org> + + * logging.stp: Revert. + 2006-01-10 Martin Hunt <hunt@redhat.com> * logging.stp: Don't set STAP_SESSION_STOPPING. That it done in _stp_exit(). - diff --git a/tapset/logging.stp b/tapset/logging.stp index 1164244f..c9c60c8d 100644 --- a/tapset/logging.stp +++ b/tapset/logging.stp @@ -21,6 +21,7 @@ function warn (msg:string) %{ // NB: exit() does *not* cause immediate return from current function/probe function exit () %{ + atomic_set (&session_state, STAP_SESSION_STOPPING); _stp_exit (); %} diff --git a/translate.cxx b/translate.cxx index d0b2a882..2b0e44fa 100644 --- a/translate.cxx +++ b/translate.cxx @@ -3590,7 +3590,7 @@ translate_pass (systemtap_session& s) s.op->newline() << "#define MAXMAPENTRIES 2048"; s.op->newline() << "#endif"; s.op->newline() << "#ifndef MAXERRORS"; - s.op->newline() << "#define MAXERRORS 1"; + s.op->newline() << "#define MAXERRORS 0"; s.op->newline() << "#endif"; s.op->newline() << "#ifndef MAXSKIPPED"; s.op->newline() << "#define MAXSKIPPED 100"; |