.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / libbar.c
index af84825b97ef520b5301f5c762c16c56a29ceeb5..0a0edfb81a9249ea71b0fe2a51254c28066f1227 100644 (file)
@@ -1,23 +1,21 @@
 /*
- * Copyright (C) 2017  Francis Deslauriers <francis.deslauriers@efficios.com>
+ * Copyright (C) 2017 Francis Deslauriers <francis.deslauriers@efficios.com>
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+ * SPDX-License-Identifier: LGPL-2.1-or-later
  *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+/*
+ * 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 <sys/sdt.h>
 #include "foobar_provider.h"
-void bar_function() {
+/* clang-format on */
+
+void bar_function()
+{
        FOOBAR_TP_IN_DLOPEN();
 }
This page took 0.02424 seconds and 4 git commands to generate.