summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
Diffstat (limited to 'tapset')
-rw-r--r--tapset/builtin_logging.stp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tapset/builtin_logging.stp b/tapset/builtin_logging.stp
index 11b00cab..bf01a0fc 100644
--- a/tapset/builtin_logging.stp
+++ b/tapset/builtin_logging.stp
@@ -25,12 +25,13 @@ function warn (msg) {
}
function exit () %{
- CONTEXT->errorcount ++; /* kill current probe */
+ /* not a NULL pointer, but don't cause _stp_error */
+ CONTEXT->last_error = "";
_stp_exit ();
%}
function _error (msg) %{
- CONTEXT->errorcount ++; /* kill current probe */
+ CONTEXT->last_error = "called error()"; /* kill current probe */
_stp_error ("%s", THIS->msg); /* implies _stp_exit */
%}