diff options
author | Stan Cox <scox@redhat.com> | 2009-03-20 16:36:25 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-03-20 16:39:25 -0400 |
commit | 5fd5bcfa7af0b19c74ef23c872fa9894990ec641 (patch) | |
tree | 38f233b452626ed77dcd5f0c448c0019708a8e65 /tapsets.cxx | |
parent | 422735b3ec857e812097566e28950aa3313892b4 (diff) | |
parent | 9c73606142525f521a44c4907832b2d1e1f3c659 (diff) | |
download | systemtap-steved-5fd5bcfa7af0b19c74ef23c872fa9894990ec641.tar.gz systemtap-steved-5fd5bcfa7af0b19c74ef23c872fa9894990ec641.tar.xz systemtap-steved-5fd5bcfa7af0b19c74ef23c872fa9894990ec641.zip |
Define static user probe point using asm instead of c.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index a8653d8a..bc567491 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -206,7 +206,9 @@ common_probe_entryfn_prologue (translator_output* o, string statestr, o->newline() << "c = per_cpu_ptr (contexts, smp_processor_id());"; o->newline() << "if (atomic_inc_return (& c->busy) != 1) {"; - o->newline(1) << "atomic_inc (& skipped_count);"; + o->newline(1) << "#if !INTERRUPTIBLE"; + o->newline() << "atomic_inc (& skipped_count);"; + o->newline() << "#endif"; o->newline() << "#ifdef STP_TIMING"; o->newline() << "atomic_inc (& skipped_count_reentrant);"; o->newline() << "#ifdef DEBUG_REENTRANCY"; |