summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwcohen <wcohen>2005-12-12 20:27:00 +0000
committerwcohen <wcohen>2005-12-12 20:27:00 +0000
commit3513970ea8455dd69926973112d2906010107808 (patch)
tree341cc580c774b00a49fd603ad517986d0030c2de
parente15a85a32d285f47be7dd519248e4ce68659dd28 (diff)
downloadsystemtap-steved-3513970ea8455dd69926973112d2906010107808.tar.gz
systemtap-steved-3513970ea8455dd69926973112d2906010107808.tar.xz
systemtap-steved-3513970ea8455dd69926973112d2906010107808.zip
Stop additional systemtap probes from collecting data when exit()
occurs.
-rw-r--r--ChangeLog5
-rw-r--r--tapset/logging.stp1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b242df2..08b7fdfa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-12 Will Cohen <wcohen@redhat.com>
+
+ * tapset/logging.stp (function_exit): Make sure systemtap probes
+ stop collection additional data.
+
2005-12-12 Frank Ch. Eigler <fche@redhat.com>
Fix parse tree pretty-printer.
diff --git a/tapset/logging.stp b/tapset/logging.stp
index d0222a86..54f4c272 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 ();
%}