This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10849] make MAXSKIPPED overflow trigger an error message


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]