lttng_ust_init_thread: initialise cached context values
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-uts-ns.c
index 619649b30ccfe22711e0d3bd3b25d5112c9de416..51d6092e53158fb197269b25f8f79cf827df53cc 100644 (file)
@@ -152,9 +152,11 @@ error_find_context:
 }
 
 /*
- *  * Force a read (imply TLS fixup for dlopen) of TLS variables.
- *   */
-void lttng_fixup_uts_ns_tls(void)
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
+ */
+void lttng_ust_uts_ns_init_thread(int flags)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_uts_ns)));
+       if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+               (void)get_uts_ns();
 }
This page took 0.027383 seconds and 4 git commands to generate.