Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
void ust_unlock(void);
void lttng_fixup_event_tls(void);
+void lttng_fixup_vtid_tls(void);
#endif /* _LTT_TRACER_CORE_H */
#include <lttng/ust-tracer.h>
#include <lttng/ringbuffer-config.h>
#include <lttng/ust-tid.h>
+#include "ltt-tracer-core.h"
/*
* We cache the result to ensure we don't trigger a system call for
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