vscode: Add configurations to run the executables under the debugger
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / sema.c
1 /*
2 * Copyright (C) 2017 Francis Deslauriers <francis.deslauriers@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 */
7
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 */
14 #include "foobar_provider.h"
15 #include <sys/sdt.h>
16 /* clang-format on */
17
18 void sema_function()
19 {
20 FOOBAR_TP_WITH_SEMAPHORE();
21 }
This page took 0.030717 seconds and 5 git commands to generate.