summaryrefslogtreecommitdiffstats
path: root/util.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-09-17 19:06:39 -0700
committerJosh Stone <jistone@redhat.com>2009-09-17 19:06:39 -0700
commitfd1bb44d787db759ab1de42c188296ca406fe2d5 (patch)
tree3dd306494853f53f16d995179bbc068f3d3eea47 /util.cxx
parentbe0789e5d8f6aa888efb53d033eca149c3710278 (diff)
downloadsystemtap-steved-fd1bb44d787db759ab1de42c188296ca406fe2d5.tar.gz
systemtap-steved-fd1bb44d787db759ab1de42c188296ca406fe2d5.tar.xz
systemtap-steved-fd1bb44d787db759ab1de42c188296ca406fe2d5.zip
Ensure that STAP_PROBE behaves like a single statement
It's important for macros like this to appear as a single statement, so they won't break the control flow of the caller. The new STAP_SEMAPHORE macro was breaking this masquerade, but now I've moved it inside of the do-while block. * includes/sys/sdt.h (STAP_SEMAPHORE): Define the disabled case empty. (STAP_PROBE[1-10]_): Move the semaphore inside the do-while block.
Diffstat (limited to 'util.cxx')
0 files changed, 0 insertions, 0 deletions