Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Conflicts:
liblttng-ust/lttng-context-vtid.c
void ust_unlock(void);
void lttng_fixup_event_tls(void);
+void lttng_fixup_vtid_tls(void);
#endif /* _LTT_TRACER_CORE_H */
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
#include <lttng/ringbuffer-config.h>
+#include "ltt-tracer-core.h"
#ifdef __linux__
#include <syscall.h>
field->record = vtid_record;
return 0;
}
+
+/*
+ * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ */
+void lttng_fixup_vtid_tls(void)
+{
+ asm volatile ("" : : "m" (cached_vtid));
+}
*/
lttng_fixup_event_tls();
lttng_fixup_ringbuffer_tls();
+ lttng_fixup_vtid_tls();
/*
* We want precise control over the order in which we construct