summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-11-22 07:49:18 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-11-22 07:49:18 -0500
commit7320987632c7029c3b351b9ff8e5118d18979693 (patch)
treee279eb65c6d977b9cd0ec22a14815b2b59a6a3d6 /translate.cxx
parentb3c3ca7cb6c0280e8116845d6513b786ac0caf83 (diff)
downloadsystemtap-steved-7320987632c7029c3b351b9ff8e5118d18979693.tar.gz
systemtap-steved-7320987632c7029c3b351b9ff8e5118d18979693.tar.xz
systemtap-steved-7320987632c7029c3b351b9ff8e5118d18979693.zip
PR5689 part 3/3: print kprobe/uprobe skipped stats
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx
index 74fa609f..1cf7361e 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -866,6 +866,8 @@ c_unparser::emit_common_header ()
o->newline() << "#ifdef STP_TIMING";
o->newline() << "atomic_t skipped_count_lowstack = ATOMIC_INIT (0);";
o->newline() << "atomic_t skipped_count_reentrant = ATOMIC_INIT (0);";
+ o->newline() << "atomic_t skipped_count_uprobe_reg = ATOMIC_INIT (0);";
+ o->newline() << "atomic_t skipped_count_uprobe_unreg = ATOMIC_INIT (0);";
o->newline() << "#endif";
o->newline();
o->newline() << "struct context {";
@@ -1360,6 +1362,10 @@ c_unparser::emit_module_exit ()
o->newline() << "if (ctr) _stp_warn (\"Skipped due to low stack: %d\\n\", ctr);";
o->newline() << "ctr = atomic_read (& skipped_count_reentrant);";
o->newline() << "if (ctr) _stp_warn (\"Skipped due to reentrancy: %d\\n\", ctr);";
+ o->newline() << "ctr = atomic_read (& skipped_count_uprobe_reg);";
+ o->newline() << "if (ctr) _stp_warn (\"Skipped due to uprobe register failure: %d\\n\", ctr);";
+ o->newline() << "ctr = atomic_read (& skipped_count_uprobe_unreg);";
+ o->newline() << "if (ctr) _stp_warn (\"Skipped due to uprobe unregister failure: %d\\n\", ctr);";
o->newline(-1) << "}";
o->newline () << "#endif";
o->newline() << "_stp_print_flush();";