Tracepoint API namespacing '_TP_EXTRACT_STRING'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 20 Apr 2021 21:01:33 +0000 (17:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Apr 2021 15:01:18 +0000 (11:01 -0400)
The ABI bump gives us the opportunity to namespace all public symbols
under the 'lttng_ust_' prefix. Namespace all API symbols and macros
under 'lttng_ust_' / 'LTTNG_UST_' and add compat macros to keep
compatibility with the previous API.

Change-Id: I6e2f65e3510cb0c0bce14b792f1e3fb280a1754d
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-tracepoint-event.h

index 43e2d15d53c4442a53081272a225aca10b9c134d..2ad1251a6b6364a6ae0cc4d3dd9b828caa92b039 100644 (file)
@@ -943,16 +943,16 @@ void lttng_ust__event_probe__##_provider##___##_name(LTTNG_UST__TP_ARGS_DATA_PRO
 #undef LTTNG_UST_TP_ARGS
 #define LTTNG_UST_TP_ARGS(...) __VA_ARGS__
 
-#define _TP_EXTRACT_STRING2(...)       #__VA_ARGS__
+#define LTTNG_UST__TP_EXTRACT_STRING2(...)     #__VA_ARGS__
 
 #undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
 #define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields)    \
 static const char __tp_event_signature___##_provider##___##_name[] =   \
-               _TP_EXTRACT_STRING2(_args);
+               LTTNG_UST__TP_EXTRACT_STRING2(_args);
 
 #include LTTNG_UST_TRACEPOINT_INCLUDE
 
-#undef _TP_EXTRACT_STRING2
+#undef LTTNG_UST__TP_EXTRACT_STRING2
 
 /*
  * Stage 6 of tracepoint event generation.
This page took 0.025786 seconds and 4 git commands to generate.