Expose a common function to force the allocation of all TLS variables
owned by liblttng-ust-common, hide the fd-tracker behind it.
Change-Id: I6acfe7f85bce1e8939cd8e1d64ecb979525fa547
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
void lttng_ust_common_ctor(void)
__attribute__((constructor));
+void lttng_ust_common_alloc_tls(void);
+
#endif
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_fd_tracker_alloc_tls(void);
-
#endif /* _LTTNG_UST_FD_H */
void lttng_ust_fd_tracker_init(void)
__attribute__((visibility("hidden")));
+void lttng_ust_fd_tracker_alloc_tls(void)
+ __attribute__((visibility("hidden")));
+
#endif
*/
lttng_ust_fd_tracker_init();
}
+
+void lttng_ust_common_alloc_tls(void)
+{
+ lttng_ust_fd_tracker_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_ust_common_alloc_tls();
lttng_cgroup_ns_alloc_tls();
lttng_ipc_ns_alloc_tls();
lttng_net_ns_alloc_tls();