Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust / tracepoint-internal.h
index 1e6f92b677e812dfe6d4b5a2d75eb695417f4894..15661652b000adc2cde3588105b8f37a6857167f 100644 (file)
@@ -1,27 +1,15 @@
-#ifndef _LTTNG_TRACEPOINT_INTERNAL_H
-#define _LTTNG_TRACEPOINT_INTERNAL_H
-
 /*
- * Copyright (c) 2011 - Mathieu Desnoyers <mathieu.desnoyers@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;
- * version 2.1 of the License.
- *
- * 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.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * 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
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  */
 
+#ifndef _LTTNG_TRACEPOINT_INTERNAL_H
+#define _LTTNG_TRACEPOINT_INTERNAL_H
+
 #include <urcu/list.h>
-#include <urcu-bp.h>
 #include <lttng/tracepoint-types.h>
+#include <lttng/ust-events.h>
 
 #define TRACE_DEFAULT  TRACE_DEBUG_LINE
 
@@ -44,13 +32,15 @@ extern int __tracepoint_probe_unregister_queue_release(const char *name,
                void (*func)(void), void *data);
 extern void __tracepoint_probe_prune_release_queue(void);
 
+void lttng_ust_synchronize_trace(void);
+
 /*
  * call after disconnection of last probe implemented within a
  * shared object before unmapping the library that contains the probe.
  */
 static inline void tracepoint_synchronize_unregister(void)
 {
-       urcu_bp_synchronize_rcu();
+       lttng_ust_synchronize_trace();
 }
 
 extern void init_tracepoint(void);
This page took 0.023122 seconds and 4 git commands to generate.