projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix multiple probe generation into one single C file
[lttng-ust.git]
/
include
/
lttng
/
tracepoint.h
diff --git
a/include/lttng/tracepoint.h
b/include/lttng/tracepoint.h
index b487370b2404e8bac2f8682fa02608ef39c1a769..ffc37c175c1a7ac9aabcd5dfea38341219fd1bf8 100644
(file)
--- a/
include/lttng/tracepoint.h
+++ b/
include/lttng/tracepoint.h
@@
-245,6
+245,17
@@
static void __attribute__((destructor)) __tracepoints__destroy(void)
tracepoint_unregister_lib(__start___tracepoints_ptrs);
}
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:
#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 */
#define TRACEPOINT_LOGLEVEL(name, loglevel)
#endif /* #ifndef TRACEPOINT_LOGLEVEL */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _LTTNG_TRACEPOINT_H */
This page took
0.024096 seconds
and
4
git commands to generate.