Custom upgrade: suffix cancelstate symbols with 1
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Jun 2022 18:56:53 +0000 (14:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Sep 2022 18:33:34 +0000 (14:33 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I107cd5c0a63c9b16498580baf9906520c39d4bfc

include/lttng/ust-cancelstate.h
src/lib/lttng-ust-common/ust-cancelstate.c

index efca9ac6c06a6a0a0aad25a4dcda563afe1e2ddd..45cbfc585df57fa51ee85ac00b760a37cb66eb36 100644 (file)
@@ -7,6 +7,15 @@
 #ifndef _LTTNG_UST_UST_CANCELSTATE_H
 #define _LTTNG_UST_UST_CANCELSTATE_H
 
+#include <lttng/ust-config.h>
+
+/* Custom upgrade 2.12 to 2.13 */
+
+#ifndef LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS
+#define lttng_ust_cancelstate_disable_push     lttng_ust_cancelstate_disable_push1
+#define lttng_ust_cancelstate_disable_pop      lttng_ust_cancelstate_disable_pop1
+#endif
+
 int lttng_ust_cancelstate_disable_push(void);
 int lttng_ust_cancelstate_disable_pop(void);
 
index e42c7b4e21d1bcb0a8d0cb09867832d9ed6e5d98..4c7e24e09e65b04ce9488f2003d3c1e098dc1b55 100644 (file)
@@ -19,7 +19,7 @@ struct ust_cancelstate {
 
 static DEFINE_URCU_TLS(struct ust_cancelstate, thread_state);
 
-int lttng_ust_cancelstate_disable_push(void)
+static int lttng_ust_cancelstate_disable_push_orig(void)
 {
        struct ust_cancelstate *state = &URCU_TLS(thread_state);
        int ret, oldstate;
@@ -36,7 +36,7 @@ end:
        return 0;
 }
 
-int lttng_ust_cancelstate_disable_pop(void)
+static int lttng_ust_cancelstate_disable_pop_orig(void)
 {
        struct ust_cancelstate *state = &URCU_TLS(thread_state);
        int ret, oldstate;
@@ -58,4 +58,19 @@ end:
        return 0;
 }
 
+/* Custom upgrade 2.12 to 2.13 */
+
+#undef lttng_ust_cancelstate_disable_push
+#undef lttng_ust_cancelstate_disable_pop
 
+int lttng_ust_cancelstate_disable_push1(void)
+       __attribute ((alias ("lttng_ust_cancelstate_disable_push_orig")));
+int lttng_ust_cancelstate_disable_pop1(void)
+       __attribute ((alias ("lttng_ust_cancelstate_disable_pop_orig")));
+
+#ifdef LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS
+int lttng_ust_cancelstate_disable_push(void)
+       __attribute ((alias ("lttng_ust_cancelstate_disable_push_orig")));
+int lttng_ust_cancelstate_disable_pop(void)
+       __attribute ((alias ("lttng_ust_cancelstate_disable_pop_orig")));
+#endif
This page took 0.026573 seconds and 5 git commands to generate.