Fix multiple probe generation into one single C file
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Nov 2011 00:19:12 +0000 (19:19 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Nov 2011 00:19:12 +0000 (19:19 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint.h

index b487370b2404e8bac2f8682fa02608ef39c1a769..ffc37c175c1a7ac9aabcd5dfea38341219fd1bf8 100644 (file)
@@ -245,6 +245,17 @@ static void __attribute__((destructor)) __tracepoints__destroy(void)
        tracepoint_unregister_lib(__start___tracepoints_ptrs);
 }
 
+#ifdef __cplusplus 
+}
+#endif
+
+#endif /* _LTTNG_TRACEPOINT_H */
+
+/*
+ * For multiple probe generation, we need to redefine TRACEPOINT_EVENT
+ * each time tracepoint.h is included.
+ */
+
 #ifndef TRACEPOINT_EVENT
 /*
  * Usage of the TRACEPOINT_EVENT macro:
@@ -448,9 +459,3 @@ static void __attribute__((destructor)) __tracepoints__destroy(void)
 #define TRACEPOINT_LOGLEVEL(name, loglevel)
 
 #endif /* #ifndef TRACEPOINT_LOGLEVEL */
-
-#ifdef __cplusplus 
-}
-#endif
-
-#endif /* _LTTNG_TRACEPOINT_H */
This page took 0.026269 seconds and 4 git commands to generate.