projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: fixup ringbuffer tls at constructor by forcing read
[lttng-ust.git]
/
liblttng-ust
/
lttng-ust-comm.c
diff --git
a/liblttng-ust/lttng-ust-comm.c
b/liblttng-ust/lttng-ust-comm.c
index 36f57efb25f4d97c31bcb04b7fd207f2807b9a8c..2f2c783b189966d19181ae98bec17a020152c002 100644
(file)
--- a/
liblttng-ust/lttng-ust-comm.c
+++ b/
liblttng-ust/lttng-ust-comm.c
@@
-46,6
+46,7
@@
#include "tracepoint-internal.h"
#include "ltt-tracer-core.h"
#include "compat.h"
#include "tracepoint-internal.h"
#include "ltt-tracer-core.h"
#include "compat.h"
+#include "../libringbuffer/tlsfixup.h"
/*
* Has lttng ust comm constructor been called ?
/*
* Has lttng ust comm constructor been called ?
@@
-827,6
+828,14
@@
void __attribute__((constructor)) lttng_ust_init(void)
if (uatomic_xchg(&initialized, 1) == 1)
return;
if (uatomic_xchg(&initialized, 1) == 1)
return;
+ /*
+ * Fixup interdependency between TLS fixup mutex (which happens
+ * to be the dynamic linker mutex) and ust_lock, taken within
+ * the ust lock.
+ */
+ lttng_fixup_event_tls();
+ lttng_fixup_ringbuffer_tls();
+
/*
* We want precise control over the order in which we construct
* our sub-libraries vs starting to receive commands from
/*
* We want precise control over the order in which we construct
* our sub-libraries vs starting to receive commands from
This page took
0.024384 seconds
and
4
git commands to generate.