summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authordsmith <dsmith>2007-04-24 17:33:41 +0000
committerdsmith <dsmith>2007-04-24 17:33:41 +0000
commit551e9f14739c2be5c5d94efef3def1126cbbba39 (patch)
treed1c2d11e691ff9d79a91791fc55d55152feb1f38 /tapsets.cxx
parent7316f630b2eb34d2edb148aa0a9a837991ff5d46 (diff)
downloadsystemtap-steved-551e9f14739c2be5c5d94efef3def1126cbbba39.tar.gz
systemtap-steved-551e9f14739c2be5c5d94efef3def1126cbbba39.tar.xz
systemtap-steved-551e9f14739c2be5c5d94efef3def1126cbbba39.zip
2007-04-24 David Smith <dsmith@redhat.com>
* tapsets.cxx (common_probe_entryfn_epilogue): Increment error_count when overload processing kicks in.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index dc306c8a..029b4dec 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -248,6 +248,7 @@ common_probe_entryfn_epilogue (translator_output* o,
o->newline(1) << "if (c->cycles_sum > STP_OVERLOAD_THRESHOLD) {";
o->newline(1) << "_stp_error (\"probe overhead exceeded threshold\");";
o->newline() << "atomic_set (&session_state, STAP_SESSION_ERROR);";
+ o->newline() << "atomic_inc (&error_count);";
o->newline(-1) << "}";
o->newline() << "c->cycles_base = cycles_atend;";