diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-11-22 07:49:18 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-11-22 07:49:18 -0500 |
commit | 7320987632c7029c3b351b9ff8e5118d18979693 (patch) | |
tree | e279eb65c6d977b9cd0ec22a14815b2b59a6a3d6 /translate.cxx | |
parent | b3c3ca7cb6c0280e8116845d6513b786ac0caf83 (diff) | |
download | systemtap-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.cxx | 6 |
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();"; |