lttng_ust_init_thread: initialise cached context values
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-procname.c
index b5bf77be611b28ee3d6d87ac5415da0470acafc6..16f34c4652e865bc14324f80e2cb1e119f776c1b 100644 (file)
@@ -122,7 +122,9 @@ error_find_context:
 /*
  * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_procname_alloc_tls(void)
+void lttng_ust_procname_init_thread(int flags)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_procname)[0]));
+       if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+               (void)wrapper_getprocname();
 }
This page took 0.024268 seconds and 4 git commands to generate.