diff options
author | Josh Stone <jistone@redhat.com> | 2009-10-21 16:15:58 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-10-21 16:36:25 -0700 |
commit | 29bb0bbc8603edb20de09e79fd8addb4a174947d (patch) | |
tree | 2d39d41b9479c87839e22b9a9c81a4830d315377 /doc | |
parent | 1d2cd5ff6a8ff79b09e342a5907b29b4c340a9a5 (diff) | |
download | systemtap-steved-29bb0bbc8603edb20de09e79fd8addb4a174947d.tar.gz systemtap-steved-29bb0bbc8603edb20de09e79fd8addb4a174947d.tar.xz systemtap-steved-29bb0bbc8603edb20de09e79fd8addb4a174947d.zip |
Refactor probe locking into shared functions
For scripts with thousands of probes, we save a fair amount of code-gen
time in pass-4 by having the common locking code extracted into shared
functions.
* runtime/probe_lock.h (stp_lock_probe, stp_unlock_probe): New.
* translate.cxx (c_unparser::emit_lock_decls): New, emits a static
const array of locks needed for each probe.
(c_unparser::emit_locks): Just call stp_lock_probe.
(c_unparser::emit_unlocks): Just call stp_unlock_probe.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions