Rename all 'fixup_tls' functions to 'alloc_tls'
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 23 Apr 2021 17:56:39 +0000 (13:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 Apr 2021 19:42:19 +0000 (15:42 -0400)
Use a term that makes it clearer we are forcing the allocation of lazy
allocated TLS variables.

Change-Id: I9bba052598ba9a62553043f91128d676b9393e71
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
24 files changed:
src/common/ringbuffer/rb-init.h
src/common/ringbuffer/ring_buffer_frontend.c
src/common/ust-fd.h
src/lib/lttng-ust-common/fd-tracker.c
src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
src/lib/lttng-ust/lttng-context-cgroup-ns.c
src/lib/lttng-ust/lttng-context-ipc-ns.c
src/lib/lttng-ust/lttng-context-net-ns.c
src/lib/lttng-ust/lttng-context-perf-counters.c
src/lib/lttng-ust/lttng-context-procname.c
src/lib/lttng-ust/lttng-context-provider.c
src/lib/lttng-ust/lttng-context-time-ns.c
src/lib/lttng-ust/lttng-context-uts-ns.c
src/lib/lttng-ust/lttng-context-vtid.c
src/lib/lttng-ust/lttng-probes.c
src/lib/lttng-ust/lttng-rb-clients.h
src/lib/lttng-ust/lttng-ring-buffer-client-discard-rt.c
src/lib/lttng-ust/lttng-ring-buffer-client-discard.c
src/lib/lttng-ust/lttng-ring-buffer-client-overwrite-rt.c
src/lib/lttng-ust/lttng-ring-buffer-client-overwrite.c
src/lib/lttng-ust/lttng-ring-buffer-client-template.h
src/lib/lttng-ust/lttng-tracer-core.h
src/lib/lttng-ust/lttng-ust-comm.c
src/lib/lttng-ust/lttng-ust-statedump.c

index 83e32c1ff2b3053c36e6f4197dcaff4a90661e2d..836760512c4a69792a07bd715664063f609e1ed9 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef _LTTNG_UST_RINGBUFFER_RB_INIT_H
 #define _LTTNG_UST_RINGBUFFER_RB_INIT_H
 
-void lttng_fixup_ringbuffer_tls(void)
+void lttng_ringbuffer_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
 void lttng_ust_ringbuffer_set_allow_blocking(void)
index fa0a984bfe26ea9f6aa8ff27c84882ad0040426c..62543fa2b6e63499daea3dcad231065e94b1da4e 100644 (file)
@@ -2558,9 +2558,9 @@ void lib_ring_buffer_check_deliver_slow(const struct lttng_ust_ring_buffer_confi
 }
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_fixup_ringbuffer_tls(void)
+void lttng_ringbuffer_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(lib_ring_buffer_nesting)));
 }
index eb9c525cbe80af985b5b3d020b1c5ac15c16ea44..b6a078bf836b52b52ddf1dfb13c9a4f81fcb7778 100644 (file)
@@ -26,6 +26,6 @@ int lttng_ust_safe_close_fd(int fd, int (*close_cb)(int));
 int lttng_ust_safe_fclose_stream(FILE *stream, int (*fclose_cb)(FILE *stream));
 int lttng_ust_safe_closefrom_fd(int lowfd, int (*close_cb)(int));
 
-void lttng_ust_fixup_fd_tracker_tls(void);
+void lttng_ust_fd_tracker_alloc_tls(void);
 
 #endif /* _LTTNG_UST_FD_H */
index 54f7deb4c027bd89fe14ea51e2a2d5d269252596..7a17e2a0ab32bb00a851088ad896e746244b1ac9 100644 (file)
@@ -48,7 +48,7 @@
 
 /*
  * Protect the lttng_fd_set. Nests within the ust_lock, and therefore
- * within the libc dl lock. Therefore, we need to fixup the TLS before
+ * within the libc dl lock. Therefore, we need to allocate the TLS before
  * nesting into this lock.
  *
  * The ust_safe_guard_fd_mutex nests within the ust_mutex. This mutex
@@ -77,9 +77,9 @@ static int num_fd_sets;
 static int init_done;
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_ust_fixup_fd_tracker_tls(void)
+void lttng_ust_fd_tracker_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(ust_fd_mutex_nest)));
 }
@@ -323,7 +323,7 @@ int lttng_ust_safe_close_fd(int fd, int (*close_cb)(int fd))
 {
        int ret = 0;
 
-       lttng_ust_fixup_fd_tracker_tls();
+       lttng_ust_fd_tracker_alloc_tls();
 
        /*
         * Ensure the tracker is initialized when called from
@@ -359,7 +359,7 @@ int lttng_ust_safe_fclose_stream(FILE *stream, int (*fclose_cb)(FILE *stream))
 {
        int ret = 0, fd;
 
-       lttng_ust_fixup_fd_tracker_tls();
+       lttng_ust_fd_tracker_alloc_tls();
 
        /*
         * Ensure the tracker is initialized when called from
@@ -414,7 +414,7 @@ int lttng_ust_safe_closefrom_fd(int lowfd, int (*close_cb)(int fd))
 {
        int ret = 0, close_success = 0, i;
 
-       lttng_ust_fixup_fd_tracker_tls();
+       lttng_ust_fd_tracker_alloc_tls();
 
        /*
         * Ensure the tracker is initialized when called from
index e3513db47b2cf1b585e7f6313e26528696cc0269..3951f5b0fa3111283b71b7021fc67a9f16f5ee73 100644 (file)
@@ -426,7 +426,7 @@ int posix_memalign(void **memptr, size_t alignment, size_t size)
 }
 
 static
-void lttng_ust_fixup_malloc_nesting_tls(void)
+void lttng_ust_malloc_nesting_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(malloc_nesting)));
 }
@@ -437,7 +437,7 @@ void lttng_ust_libc_wrapper_malloc_ctor(void)
        if (cur_alloc.calloc) {
                return;
        }
-       lttng_ust_fixup_malloc_nesting_tls();
+       lttng_ust_malloc_nesting_alloc_tls();
        /*
         * Ensure the allocator is in place before the process becomes
         * multithreaded.
index fa67a64cc3b1d19ccaffdb8d0b05126d024aeec1..34523ea1ad96b33f2bacdb48860597309283392c 100644 (file)
@@ -153,9 +153,9 @@ error_find_context:
 }
 
 /*
- *  * Force a read (imply TLS fixup for dlopen) of TLS variables.
- *   */
-void lttng_fixup_cgroup_ns_tls(void)
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
+ */
+void lttng_cgroup_ns_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_cgroup_ns)));
 }
index f635a23077bfdf47ff4c2781994ca3454dee7fea..63401e8d5889a6ce7f8fabb6b45c17684b1340d5 100644 (file)
@@ -151,9 +151,9 @@ error_find_context:
 }
 
 /*
- *  * Force a read (imply TLS fixup for dlopen) of TLS variables.
- *   */
-void lttng_fixup_ipc_ns_tls(void)
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
+ */
+void lttng_ipc_ns_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_ipc_ns)));
 }
index 6982a351e002d3aa846d12793953f544660ab79b..960591c2586e41c0543d2aa975d6c9da5e7a13ff 100644 (file)
@@ -151,9 +151,9 @@ 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_net_ns_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_net_ns)));
 }
index 1d44a54ae1e6afd1ecf8f81d896055b8393bec9d..233c654ca75a3237973043a46a882670f5769a0c 100644 (file)
@@ -71,7 +71,7 @@ static pthread_key_t perf_counter_key;
  * lttng_perf_lock - Protect lttng-ust perf counter data structures
  *
  * Nests within the ust_lock, and therefore within the libc dl lock.
- * Therefore, we need to fixup the TLS before nesting into this lock.
+ * Therefore, we need to allocate the TLS before nesting into this lock.
  * Nests inside RCU bp read-side lock. Protects against concurrent
  * fork.
  */
@@ -90,9 +90,9 @@ static int ust_perf_saved_cancelstate;
 static DEFINE_URCU_TLS(int, ust_perf_mutex_nest);
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_ust_fixup_perf_counter_tls(void)
+void lttng_ust_perf_counter_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(ust_perf_mutex_nest)));
 }
index 28c8490d0b40e3b63a063445d89e25c34a196d20..80ba9825e4ea97e7517a659010d409781620e19f 100644 (file)
@@ -120,9 +120,9 @@ error_find_context:
 }
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_fixup_procname_tls(void)
+void lttng_procname_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_procname)[0]));
 }
index cc437067522b71c5e495b8cb9d97a0207ec40d2d..796a6b49a3183dbb9ddf73a89710749a2155d310 100644 (file)
@@ -72,7 +72,7 @@ struct lttng_ust_registered_context_provider *lttng_ust_context_provider_registe
        size_t name_len = strlen(provider->name);
        uint32_t hash;
 
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 
        /* Provider name starts with "$app.". */
        if (strncmp("$app.", provider->name, strlen("$app.")) != 0)
@@ -106,7 +106,7 @@ end:
 
 void lttng_ust_context_provider_unregister(struct lttng_ust_registered_context_provider *reg_provider)
 {
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 
        if (ust_lock())
                goto end;
index 4f532b486d787f4f28f656fbe021b32e93b85405..ec32a1deea2881793af572f95753f49fa02fd201 100644 (file)
@@ -150,9 +150,9 @@ error_find_context:
 }
 
 /*
- *  * Force a read (imply TLS fixup for dlopen) of TLS variables.
- *   */
-void lttng_fixup_time_ns_tls(void)
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
+ */
+void lttng_time_ns_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_time_ns)));
 }
index 619649b30ccfe22711e0d3bd3b25d5112c9de416..06a978fd4184d561c9ff437a760bbd3ea7203bda 100644 (file)
@@ -152,9 +152,9 @@ error_find_context:
 }
 
 /*
- *  * Force a read (imply TLS fixup for dlopen) of TLS variables.
- *   */
-void lttng_fixup_uts_ns_tls(void)
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
+ */
+void lttng_uts_ns_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_uts_ns)));
 }
index 97a023d200af68f07abb43b4506170a031ab068b..880e34b90a1dae8aa9b95eec305ceaa08d0b5176 100644 (file)
@@ -110,9 +110,9 @@ error_find_context:
 }
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_fixup_vtid_tls(void)
+void lttng_vtid_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(cached_vtid)));
 }
index a0e9fffa134237ab7e67838ddeae8b028ba649bf..1e73064907865e8e2e7cfbc396fd0fa1fe96c647 100644 (file)
@@ -164,7 +164,7 @@ struct lttng_ust_registered_probe *lttng_ust_probe_register(const struct lttng_u
 {
        struct lttng_ust_registered_probe *reg_probe = NULL;
 
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 
        /*
         * If version mismatch, don't register, but don't trigger assert
@@ -202,7 +202,7 @@ end:
 
 void lttng_ust_probe_unregister(struct lttng_ust_registered_probe *reg_probe)
 {
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 
        if (!reg_probe)
                return;
index e08c32cfe027ca896cc998bef06a927de71c887e..5e09c2b2c8de188b2ceafab09ce7236a8e563f9c 100644 (file)
@@ -79,16 +79,16 @@ void lttng_ring_buffer_metadata_client_exit(void)
        __attribute__((visibility("hidden")));
 
 
-void lttng_ust_fixup_ring_buffer_client_overwrite_tls(void)
+void lttng_ust_ring_buffer_client_overwrite_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_ust_fixup_ring_buffer_client_overwrite_rt_tls(void)
+void lttng_ust_ring_buffer_client_overwrite_rt_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_ust_fixup_ring_buffer_client_discard_tls(void)
+void lttng_ust_ring_buffer_client_discard_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_ust_fixup_ring_buffer_client_discard_rt_tls(void)
+void lttng_ust_ring_buffer_client_discard_rt_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
 #endif /* _LTTNG_RB_CLIENT_H */
index 131ab63997adf87c94c1595dd1932c7a8012db9c..71279ccfbe3e17fad3e2adc4170ffb6c611f2301 100644 (file)
@@ -12,8 +12,8 @@
 
 #define RING_BUFFER_MODE_TEMPLATE              RING_BUFFER_DISCARD
 #define RING_BUFFER_MODE_TEMPLATE_STRING       "discard-rt"
-#define RING_BUFFER_MODE_TEMPLATE_TLS_FIXUP    \
-       lttng_ust_fixup_ring_buffer_client_discard_rt_tls
+#define RING_BUFFER_MODE_TEMPLATE_ALLOC_TLS    \
+       lttng_ust_ring_buffer_client_discard_rt_alloc_tls
 #define RING_BUFFER_MODE_TEMPLATE_INIT \
        lttng_ring_buffer_client_discard_rt_init
 #define RING_BUFFER_MODE_TEMPLATE_EXIT \
index e7f605c3bd71b321a8c24608cff0639ed5e0beda..5a6daa6564d2d42032e046ab6705365221c1e1b9 100644 (file)
@@ -12,8 +12,8 @@
 
 #define RING_BUFFER_MODE_TEMPLATE              RING_BUFFER_DISCARD
 #define RING_BUFFER_MODE_TEMPLATE_STRING       "discard"
-#define RING_BUFFER_MODE_TEMPLATE_TLS_FIXUP    \
-       lttng_ust_fixup_ring_buffer_client_discard_tls
+#define RING_BUFFER_MODE_TEMPLATE_ALLOC_TLS    \
+       lttng_ust_ring_buffer_client_discard_alloc_tls
 #define RING_BUFFER_MODE_TEMPLATE_INIT \
        lttng_ring_buffer_client_discard_init
 #define RING_BUFFER_MODE_TEMPLATE_EXIT \
index 32a131306b94e3dc7a87c03990929c6d5b13232f..8b5f6c36c9258ae4bcf59e4d351cf506bcb09f86 100644 (file)
@@ -12,8 +12,8 @@
 
 #define RING_BUFFER_MODE_TEMPLATE              RING_BUFFER_OVERWRITE
 #define RING_BUFFER_MODE_TEMPLATE_STRING       "overwrite-rt"
-#define RING_BUFFER_MODE_TEMPLATE_TLS_FIXUP    \
-       lttng_ust_fixup_ring_buffer_client_overwrite_rt_tls
+#define RING_BUFFER_MODE_TEMPLATE_ALLOC_TLS    \
+       lttng_ust_ring_buffer_client_overwrite_rt_alloc_tls
 #define RING_BUFFER_MODE_TEMPLATE_INIT \
        lttng_ring_buffer_client_overwrite_rt_init
 #define RING_BUFFER_MODE_TEMPLATE_EXIT \
index d550aa20095107a10be27872b71fdb5e855c6ae5..f5d34defbe7c1842574d04e8ac18c162366fc091 100644 (file)
@@ -12,8 +12,8 @@
 
 #define RING_BUFFER_MODE_TEMPLATE              RING_BUFFER_OVERWRITE
 #define RING_BUFFER_MODE_TEMPLATE_STRING       "overwrite"
-#define RING_BUFFER_MODE_TEMPLATE_TLS_FIXUP    \
-       lttng_ust_fixup_ring_buffer_client_overwrite_tls
+#define RING_BUFFER_MODE_TEMPLATE_ALLOC_TLS    \
+       lttng_ust_ring_buffer_client_overwrite_alloc_tls
 #define RING_BUFFER_MODE_TEMPLATE_INIT \
        lttng_ring_buffer_client_overwrite_init
 #define RING_BUFFER_MODE_TEMPLATE_EXIT \
index bc7fc2f2fe900a72a280437d814051b68549fb12..16c8895f24a1aba96f642f2c7c312b16837902ba 100644 (file)
@@ -71,9 +71,9 @@ typedef struct lttng_ust_ring_buffer_ctx_private private_ctx_stack_t[LIB_RING_BU
 static DEFINE_URCU_TLS(private_ctx_stack_t, private_ctx_stack);
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void RING_BUFFER_MODE_TEMPLATE_TLS_FIXUP(void)
+void RING_BUFFER_MODE_TEMPLATE_ALLOC_TLS(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(private_ctx_stack)));
 }
index 75765394ec59cb9f7611bd7e509ecba0f672feea..abe3ea74ebefb58a3f5ab68f56d8e16195c6ff6f 100644 (file)
@@ -34,31 +34,28 @@ void ust_lock_nocheck(void)
 void ust_unlock(void)
        __attribute__((visibility("hidden")));
 
-void lttng_ust_fixup_tls(void)
+void lttng_ust_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_fixup_event_tls(void)
+void lttng_vtid_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_fixup_vtid_tls(void)
+void lttng_procname_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_fixup_procname_tls(void)
+void lttng_cgroup_ns_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_fixup_cgroup_ns_tls(void)
+void lttng_ipc_ns_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_fixup_ipc_ns_tls(void)
+void lttng_net_ns_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_fixup_net_ns_tls(void)
+void lttng_time_ns_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
-void lttng_fixup_time_ns_tls(void)
-       __attribute__((visibility("hidden")));
-
-void lttng_fixup_uts_ns_tls(void)
+void lttng_uts_ns_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
 const char *lttng_ust_obj_get_name(int id)
@@ -103,7 +100,7 @@ void lttng_counter_transport_unregister(struct lttng_counter_transport *transpor
        __attribute__((visibility("hidden")));
 
 #ifdef HAVE_LINUX_PERF_EVENT_H
-void lttng_ust_fixup_perf_counter_tls(void)
+void lttng_ust_perf_counter_alloc_tls(void)
        __attribute__((visibility("hidden")));
 
 void lttng_perf_lock(void)
@@ -113,7 +110,7 @@ void lttng_perf_unlock(void)
        __attribute__((visibility("hidden")));
 #else /* #ifdef HAVE_LINUX_PERF_EVENT_H */
 static inline
-void lttng_ust_fixup_perf_counter_tls(void)
+void lttng_ust_perf_counter_alloc_tls(void)
 {
 }
 static inline
index dc1b6e37bf8bc2af3bb873283a2b7c251a49dc2b..b76564723ddca64ca404e256013abc84fe5404ac 100644 (file)
@@ -374,48 +374,48 @@ const char *get_lttng_home_dir(void)
 }
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
 static
-void lttng_fixup_nest_count_tls(void)
+void lttng_nest_count_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(lttng_ust_nest_count)));
 }
 
 static
-void lttng_fixup_ust_mutex_nest_tls(void)
+void lttng_ust_mutex_nest_alloc_tls(void)
 {
        asm volatile ("" : : "m" (URCU_TLS(ust_mutex_nest)));
 }
 
 /*
- * Fixup lttng-ust urcu TLS.
+ * Allocate lttng-ust urcu TLS.
  */
 static
-void lttng_fixup_lttng_ust_urcu_tls(void)
+void lttng_lttng_ust_urcu_alloc_tls(void)
 {
        (void) lttng_ust_urcu_read_ongoing();
 }
 
-void lttng_ust_fixup_tls(void)
+void lttng_ust_alloc_tls(void)
 {
-       lttng_fixup_lttng_ust_urcu_tls();
-       lttng_fixup_ringbuffer_tls();
-       lttng_fixup_vtid_tls();
-       lttng_fixup_nest_count_tls();
-       lttng_fixup_procname_tls();
-       lttng_fixup_ust_mutex_nest_tls();
-       lttng_ust_fixup_perf_counter_tls();
-       lttng_ust_fixup_fd_tracker_tls();
-       lttng_fixup_cgroup_ns_tls();
-       lttng_fixup_ipc_ns_tls();
-       lttng_fixup_net_ns_tls();
-       lttng_fixup_time_ns_tls();
-       lttng_fixup_uts_ns_tls();
-       lttng_ust_fixup_ring_buffer_client_discard_tls();
-       lttng_ust_fixup_ring_buffer_client_discard_rt_tls();
-       lttng_ust_fixup_ring_buffer_client_overwrite_tls();
-       lttng_ust_fixup_ring_buffer_client_overwrite_rt_tls();
+       lttng_lttng_ust_urcu_alloc_tls();
+       lttng_ringbuffer_alloc_tls();
+       lttng_vtid_alloc_tls();
+       lttng_nest_count_alloc_tls();
+       lttng_procname_alloc_tls();
+       lttng_ust_mutex_nest_alloc_tls();
+       lttng_ust_perf_counter_alloc_tls();
+       lttng_ust_fd_tracker_alloc_tls();
+       lttng_cgroup_ns_alloc_tls();
+       lttng_ipc_ns_alloc_tls();
+       lttng_net_ns_alloc_tls();
+       lttng_time_ns_alloc_tls();
+       lttng_uts_ns_alloc_tls();
+       lttng_ust_ring_buffer_client_discard_alloc_tls();
+       lttng_ust_ring_buffer_client_discard_rt_alloc_tls();
+       lttng_ust_ring_buffer_client_overwrite_alloc_tls();
+       lttng_ust_ring_buffer_client_overwrite_rt_alloc_tls();
 }
 
 /*
@@ -436,7 +436,7 @@ void lttng_ust_init_thread(void)
         * ensure those are initialized before a signal handler nesting over
         * this thread attempts to use them.
         */
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 }
 
 int lttng_get_notify_socket(void *owner)
@@ -1741,7 +1741,7 @@ void *ust_listener_thread(void *arg)
        int sock, ret, prev_connect_failed = 0, has_waited = 0, fd;
        long timeout;
 
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
        /*
         * If available, add '-ust' to the end of this thread's
         * process name
@@ -2069,11 +2069,11 @@ void lttng_ust_ctor(void)
                return;
 
        /*
-        * Fixup interdependency between TLS fixup mutex (which happens
+        * Fixup interdependency between TLS allocation mutex (which happens
         * to be the dynamic linker mutex) and ust_lock, taken within
         * the ust lock.
         */
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 
        lttng_ust_loaded = 1;
 
@@ -2378,8 +2378,8 @@ void lttng_ust_before_fork(sigset_t *save_sigset)
        sigset_t all_sigs;
        int ret;
 
-       /* Fixup lttng-ust TLS. */
-       lttng_ust_fixup_tls();
+       /* Allocate lttng-ust TLS. */
+       lttng_ust_alloc_tls();
 
        if (URCU_TLS(lttng_ust_nest_count))
                return;
index fca97d3e420067604016a83884d7b3067910b42e..64294706703b6c0ae6e475120c1ce68da181791c 100644 (file)
@@ -554,10 +554,10 @@ void lttng_ust_dl_update(void *ip)
                return;
 
        /*
-        * Fixup lttng-ust TLS when called from dlopen/dlclose
-        * instrumentation.
+        * Force the allocation of lttng-ust TLS variables when called from
+        * dlopen/dlclose instrumentation.
         */
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 
        data.exec_found = 0;
        data.first = true;
This page took 0.038596 seconds and 4 git commands to generate.