Tests: fix: test_list_triggers_cli fails to list userspace-probe-sdt trigger
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / sema.c
CommitLineData
a9c2df2b 1/*
9d16b343 2 * Copyright (C) 2017 Francis Deslauriers <francis.deslauriers@efficios.com>
a9c2df2b 3 *
9d16b343 4 * SPDX-License-Identifier: LGPL-2.1-or-later
a9c2df2b 5 *
a9c2df2b
FD
6 */
7
2f101846
JG
8/*
9 * The order of inclusion is important here: including sdt.h _after_ the probe
10 * declarations ensures that semaphore-protected SDT probes are
11 * generated. See SYSTEMTAP(2) for more details.
12 */
13/* clang-format off */
a9c2df2b
FD
14#include "foobar_provider.h"
15#include <sys/sdt.h>
2f101846
JG
16/* clang-format on */
17
28f23191
JG
18void sema_function()
19{
a9c2df2b
FD
20 FOOBAR_TP_WITH_SEMAPHORE();
21}
This page took 0.039936 seconds and 4 git commands to generate.