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
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
18void sema_function()
19{
20 FOOBAR_TP_WITH_SEMAPHORE();
21}
This page took 0.023726 seconds and 4 git commands to generate.