From: Michael Jeanson Date: Tue, 20 Apr 2021 21:15:16 +0000 (-0400) Subject: Tracepoint API namespacing '__lttng_ust_events_exit' X-Git-Tag: v2.13.0-rc1~38 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=638ce920ec31c143db2c3f64a6571584adede895;p=lttng-ust.git Tracepoint API namespacing '__lttng_ust_events_exit' 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: I150273940c94f4b0c86b87adcad724befd480158 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-tracepoint-event.h b/include/lttng/ust-tracepoint-event.h index 06f06749..10b47b2c 100644 --- a/include/lttng/ust-tracepoint-event.h +++ b/include/lttng/ust-tracepoint-event.h @@ -1152,10 +1152,10 @@ LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__events_init__, LTTNG_UST_TRACEPOINT_PROV } static void -LTTNG_UST__TP_COMBINE_TOKENS(__lttng_ust_events_exit__, LTTNG_UST_TRACEPOINT_PROVIDER)(void) +LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__events_exit__, LTTNG_UST_TRACEPOINT_PROVIDER)(void) lttng_ust_notrace __attribute__((destructor)); static void -LTTNG_UST__TP_COMBINE_TOKENS(__lttng_ust_events_exit__, LTTNG_UST_TRACEPOINT_PROVIDER)(void) +LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__events_exit__, LTTNG_UST_TRACEPOINT_PROVIDER)(void) { if (--LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__probe_register_refcount___, LTTNG_UST_TRACEPOINT_PROVIDER)) { diff --git a/src/lib/lttng-ust/lttng-ust-statedump.c b/src/lib/lttng-ust/lttng-ust-statedump.c index 08f86d92..6d166cf0 100644 --- a/src/lib/lttng-ust/lttng-ust-statedump.c +++ b/src/lib/lttng-ust/lttng-ust-statedump.c @@ -652,7 +652,7 @@ void ust_dl_state_destroy(void) void lttng_ust_statedump_destroy(void) { - __lttng_ust_events_exit__lttng_ust_statedump(); + lttng_ust__events_exit__lttng_ust_statedump(); lttng_ust__tracepoints__ptrs_destroy(); lttng_ust__tracepoints__destroy(); ust_dl_state_destroy();