Fix: fixup ringbuffer tls at constructor by forcing read
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index ba69f5fff35a84c14fa97e64de461957f634a37f..2f2c783b189966d19181ae98bec17a020152c002 100644 (file)
@@ -46,6 +46,7 @@
 #include "tracepoint-internal.h"
 #include "ltt-tracer-core.h"
 #include "compat.h"
+#include "../libringbuffer/tlsfixup.h"
 
 /*
  * Has lttng ust comm constructor been called ?
@@ -833,6 +834,7 @@ void __attribute__((constructor)) lttng_ust_init(void)
         * the ust lock.
         */
        lttng_fixup_event_tls();
+       lttng_fixup_ringbuffer_tls();
 
        /*
         * We want precise control over the order in which we construct
This page took 0.02365 seconds and 4 git commands to generate.