Tracepoint API namespacing '__probe_register'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 20 Apr 2021 21:06:10 +0000 (17:06 -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: I7fa206f7730802b73c441901572c0f3986d9566a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-tracepoint-event.h

index f3504d435b267e9e25770614c1db0be5bcc5c636..996750c7ad7f0fab0ca93957fcedd75a6d28309e 100644 (file)
@@ -1105,7 +1105,7 @@ const struct lttng_ust_probe_desc LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__probe_
        .minor = LTTNG_UST_PROVIDER_MINOR,
 };
 
-static int LTTNG_UST__TP_COMBINE_TOKENS(__probe_register_refcount___, LTTNG_UST_TRACEPOINT_PROVIDER);
+static int LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__probe_register_refcount___, LTTNG_UST_TRACEPOINT_PROVIDER);
 static struct lttng_ust_registered_probe *LTTNG_UST__TP_COMBINE_TOKENS(__lttng_ust_probe_register_cookie___, LTTNG_UST_TRACEPOINT_PROVIDER);
 
 /*
@@ -1129,7 +1129,7 @@ LTTNG_UST__TP_COMBINE_TOKENS(__lttng_ust_events_init__, LTTNG_UST_TRACEPOINT_PRO
 {
        struct lttng_ust_registered_probe *reg_probe;
 
-       if (LTTNG_UST__TP_COMBINE_TOKENS(__probe_register_refcount___,
+       if (LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__probe_register_refcount___,
                        LTTNG_UST_TRACEPOINT_PROVIDER)++) {
                return;
        }
@@ -1157,7 +1157,7 @@ LTTNG_UST__TP_COMBINE_TOKENS(__lttng_ust_events_exit__, LTTNG_UST_TRACEPOINT_PRO
 static void
 LTTNG_UST__TP_COMBINE_TOKENS(__lttng_ust_events_exit__, LTTNG_UST_TRACEPOINT_PROVIDER)(void)
 {
-       if (--LTTNG_UST__TP_COMBINE_TOKENS(__probe_register_refcount___,
+       if (--LTTNG_UST__TP_COMBINE_TOKENS(lttng_ust__probe_register_refcount___,
                        LTTNG_UST_TRACEPOINT_PROVIDER)) {
                return;
        }
This page took 0.026377 seconds and 4 git commands to generate.