Fix: fixup ringbuffer tls at constructor by forcing read
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index fa184ad74270d50dfe29e45c3c0984a2b2d6c4b5..b90df8610edb6cee07e0bef8ac4ec82cb787b5a2 100644 (file)
@@ -46,6 +46,7 @@
 #include <usterr-signal-safe.h>
 #include "tracepoint-internal.h"
 #include "ltt-tracer-core.h"
+#include "../libringbuffer/tlsfixup.h"
 
 /*
  * Has lttng ust comm constructor been called ?
@@ -838,6 +839,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.029086 seconds and 4 git commands to generate.