*
*/
+/*
+ * The order of inclusion is important here: including sdt.h _after_ the probe
+ * declarations ensures that semaphore-protected SDT probes are
+ * generated. See SYSTEMTAP(2) for more details.
+ */
+/* clang-format off */
#include "foobar_provider.h"
-
#include <sys/sdt.h>
+/* clang-format on */
+
void sema_function()
{
FOOBAR_TP_WITH_SEMAPHORE();