projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/tests/utils/testapp/userspace-probe-sdt-binary/sema.c
b/tests/utils/testapp/userspace-probe-sdt-binary/sema.c
index ffe2b5c6016a50355ba5de3d2f2df49b5e4a566d..ef8ed2629ddc6bc6fafa5c3fb3f26238593776aa 100644
(file)
--- a/
tests/utils/testapp/userspace-probe-sdt-binary/sema.c
+++ b/
tests/utils/testapp/userspace-probe-sdt-binary/sema.c
@@
-5,9
+5,16
@@
*
*/
*
*/
+/*
+ * 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 "foobar_provider.h"
-
#include <sys/sdt.h>
#include <sys/sdt.h>
+/* clang-format on */
+
void sema_function()
{
FOOBAR_TP_WITH_SEMAPHORE();
void sema_function()
{
FOOBAR_TP_WITH_SEMAPHORE();
This page took
0.022845 seconds
and
4
git commands to generate.