diff options
author | Josh Stone <jistone@redhat.com> | 2009-09-17 19:06:39 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-09-17 19:06:39 -0700 |
commit | fd1bb44d787db759ab1de42c188296ca406fe2d5 (patch) | |
tree | 3dd306494853f53f16d995179bbc068f3d3eea47 /parse.cxx | |
parent | be0789e5d8f6aa888efb53d033eca149c3710278 (diff) | |
download | systemtap-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 'parse.cxx')
0 files changed, 0 insertions, 0 deletions