lttng_ust_init_thread: initialise cached context values
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-time-ns.c
index ec32a1deea2881793af572f95753f49fa02fd201..e84b7048fae9cb37d0fc5b67eeaa7cfff081ea8f 100644 (file)
@@ -152,7 +152,9 @@ error_find_context:
 /*
  * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_time_ns_alloc_tls(void)
+void lttng_ust_time_ns_init_thread(int flags)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_time_ns)));
+       if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+               (void)get_time_ns();
 }
This page took 0.026014 seconds and 4 git commands to generate.