From: Michael Jeanson Date: Tue, 20 Apr 2021 15:05:36 +0000 (-0400) Subject: Tracepoint API namespacing 'LTTNG_UST_SDT' X-Git-Tag: v2.13.0-rc1~70 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bd75d5b944fefa9819bd341d16478a31441d30e3;p=lttng-ust.git Tracepoint API namespacing 'LTTNG_UST_SDT' 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: Ie7e9c62200b6874141e2fdc3c656a9eb95029273 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/tracepoint.h b/include/lttng/tracepoint.h index 48781e8e..199c8d43 100644 --- a/include/lttng/tracepoint.h +++ b/include/lttng/tracepoint.h @@ -31,16 +31,16 @@ */ #include -#define _LTTNG_UST_SDT_NARG(...) \ - __LTTNG_UST_SDT_NARG(__VA_ARGS__, 12,11,10,9,8,7,6,5,4,3,2,1,0) +#define LTTNG_UST__SDT_NARG(...) \ + LTTNG_UST___SDT_NARG(__VA_ARGS__, 12,11,10,9,8,7,6,5,4,3,2,1,0) -#define __LTTNG_UST_SDT_NARG(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12, N, ...) N +#define LTTNG_UST___SDT_NARG(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12, N, ...) N -#define _LTTNG_UST_SDT_PROBE_N(provider, name, N, ...) \ +#define LTTNG_UST__SDT_PROBE_N(provider, name, N, ...) \ _SDT_PROBE(provider, name, N, (__VA_ARGS__)) #define LTTNG_UST_STAP_PROBEV(provider, name, ...) \ - _LTTNG_UST_SDT_PROBE_N(provider, name, _LTTNG_UST_SDT_NARG(0, ##__VA_ARGS__), ##__VA_ARGS__) + LTTNG_UST__SDT_PROBE_N(provider, name, LTTNG_UST__SDT_NARG(0, ##__VA_ARGS__), ##__VA_ARGS__) #else #define LTTNG_UST_STAP_PROBEV(...)