]> sourceware.org Git - systemtap.git/commit
Ensure that STAP_PROBE behaves like a single statement
authorJosh Stone <jistone@redhat.com>
Fri, 18 Sep 2009 02:06:39 +0000 (19:06 -0700)
committerJosh Stone <jistone@redhat.com>
Fri, 18 Sep 2009 02:06:39 +0000 (19:06 -0700)
commitfd1bb44d787db759ab1de42c188296ca406fe2d5
tree3dd306494853f53f16d995179bbc068f3d3eea47
parentbe0789e5d8f6aa888efb53d033eca149c3710278
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.
includes/sys/sdt.h
This page took 0.026378 seconds and 5 git commands to generate.