}
/*
- * * 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();
}