Fix: perform TLS fixup in all UST entry points from each thread
[lttng-ust.git] / liblttng-ust / lttng-ust-statedump.c
index 4f989bca9729acb2e931cd614b6520756c4fc9ee..b4d93fdddfe8b67922e29b235975dbd3e77e778b 100644 (file)
@@ -218,6 +218,12 @@ int do_baddr_statedump(void *owner)
        if (getenv("LTTNG_UST_WITHOUT_BADDR_STATEDUMP"))
                return 0;
 
+       /*
+        * Fixup lttng-ust TLS when called from dlopen/dlclose
+        * instrumentation.
+        */
+       lttng_ust_fixup_tls();
+
        data.owner = owner;
        data.exec_found = 0;
        /*
This page took 0.023731 seconds and 4 git commands to generate.