Fix: initialize RCU callbacks with mixed LGPL/non-LGPL objects
[lttng-ust.git] / include / lttng / tracepoint.h
index a73056030d0be4c3dc12b06035bf18191d649f95..03bc913fd877292857215165d2926bc003cc11dd 100644 (file)
@@ -309,8 +309,12 @@ __tracepoints__init(void);
 static void
 __tracepoints__init(void)
 {
-       if (__tracepoint_registered++)
+       if (__tracepoint_registered++) {
+               if (!tracepoint_dlopen_ptr->liblttngust_handle)
+                       return;
+               __tracepoint__init_urcu_sym();
                return;
+       }
 
        if (!tracepoint_dlopen_ptr)
                tracepoint_dlopen_ptr = &tracepoint_dlopen;
This page took 0.0261 seconds and 5 git commands to generate.