lttng_ust_init_thread: initialise cached context values
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-net-ns.c
index 960591c2586e41c0543d2aa975d6c9da5e7a13ff..66fcb045ee776bd2a21b03a12e0bea456f51048a 100644 (file)
@@ -153,7 +153,9 @@ error_find_context:
 /*
  * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_net_ns_alloc_tls(void)
+void lttng_ust_net_ns_init_thread(int flags)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_net_ns)));
+       if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+               (void)get_net_ns();
 }
This page took 0.024051 seconds and 4 git commands to generate.