This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10849] make MAXSKIPPED overflow trigger an error message
- From: "rgrunber at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 26 Oct 2009 20:08:45 -0000
- Subject: [Bug translator/10849] make MAXSKIPPED overflow trigger an error message
- References: <20091026171653.10849.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rgrunber at redhat dot com 2009-10-26 20:08 -------
Error is generated mentioning MAXSKIPPED and info about running again with -t
option.
diff --git a/tapsets.cxx b/tapsets.cxx
index 17e6c6c..008a7f9 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -216,6 +216,7 @@ common_probe_entryfn_epilogue (translator_output* o,
o->newline(1) << "_stp_softerror (\"%s\", c->last_error);";
o->indent(-1);
o->newline() << "atomic_inc (& error_count);";
+ o->newline() << "c->last_error = \"Skipped too many probes, check MAXSKIPPED
or try again with stap -t for more details.\";";
o->newline() << "if (atomic_read (& error_count) > MAXERRORS) {";
o->newline(1) << "atomic_set (& session_state, STAP_SESSION_ERROR);";
o->newline() << "_stp_exit ();";
@@ -229,7 +230,7 @@ common_probe_entryfn_epilogue (translator_output* o,
// Check for excessive skip counts.
o->newline() << "if (unlikely (atomic_read (& skipped_count) > MAXSKIPPED)) {";
o->newline(1) << "atomic_set (& session_state, STAP_SESSION_ERROR);";
- o->newline() << "_stp_exit ();";
+ o->newline() << "_stp_error (\"Skipped too many probes, check MAXSKIPPED or
try again with stap -t for more details.\");";
o->newline(-1) << "}";
o->newline() << "#if INTERRUPTIBLE";
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10849
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.