X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibfoo.c;h=283dac24e5387d6e1af90e4cc126ec3f6b7582f1;hb=HEAD;hp=103b3d729285ea637da28ec0ecc4086b37bdbea7;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c b/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c index 103b3d729..283dac24e 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c +++ b/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c @@ -5,10 +5,20 @@ * */ +/* + * The order of inclusion is important here: including sdt.h _before_ the probe + * declarations ensures that semaphore-protected SDT probes (which we don't support) are not + * generated. See SYSTEMTAP(2) for more details. + */ +/* clang-format off */ #include #include "foobar_provider.h" -void foo_function() { +/* clang-format on */ + +void foo_function() +{ FOOBAR_TP_IN_SHARED_OBJECT(); } -void overridable_function() { +void overridable_function() +{ }