Fix: c99: use __asm__ __volatile__
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-net-ns.c
index 6982a351e002d3aa846d12793953f544660ab79b..4f62c0551f1d23c622566b967451c7b3637cb366 100644 (file)
@@ -151,9 +151,11 @@ error_find_context:
 }
 
 /*
- *  * Force a read (imply TLS fixup for dlopen) of TLS variables.
- *   */
-void lttng_fixup_net_ns_tls(void)
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
+ */
+void lttng_ust_net_ns_init_thread(int flags)
 {
-       asm volatile ("" : : "m" (URCU_TLS(cached_net_ns)));
+       __asm__ __volatile__ ("" : : "m" (URCU_TLS(cached_net_ns)));
+       if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+               (void)get_net_ns();
 }
This page took 0.023328 seconds and 4 git commands to generate.