Custom upgrade: suffix getcpu plugin symbol with 1
[lttng-ust.git] / src / lib / lttng-ust-common / getcpu.c
index e80bcf1ff83b0e67699d177398573152dc7841d4..748ca3918e11cc1fa0a70e608c40734a6d1bd553 100644 (file)
@@ -25,7 +25,7 @@ void *getcpu_plugin_handle;
 /*
  * Override the user provided getcpu implementation.
  */
-int lttng_ust_getcpu_override(int (*getcpu)(void))
+static int lttng_ust_getcpu_override_orig(int (*getcpu)(void))
 {
        CMM_STORE_SHARED(lttng_ust_get_cpu_sym, getcpu);
        return 0;
@@ -75,3 +75,14 @@ void lttng_ust_getcpu_plugin_init(void)
        /* Run the user provided getcpu plugin init function. */
        getcpu_plugin_init();
 }
+
+/* Custom upgrade 2.12 to 2.13 */
+
+#undef lttng_ust_getcpu_override
+int lttng_ust_getcpu_override1(int (*getcpu)(void))
+       __attribute__ ((alias ("lttng_ust_getcpu_override_orig")));
+
+#ifdef LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS
+int lttng_ust_getcpu_override(int (*getcpu)(void))
+       __attribute__ ((alias ("lttng_ust_getcpu_override_orig")));
+#endif
This page took 0.028851 seconds and 5 git commands to generate.