lttng_ust_init_thread: initialise cached context values
[lttng-ust.git] / src / lib / lttng-ust / lttng-ust-statedump.c
index 64294706703b6c0ae6e475120c1ce68da181791c..bd95c0432e4ca4616dac6bab1f735222305d9a17 100644 (file)
@@ -423,10 +423,10 @@ void iter_end(struct dl_iterate_data *data, void *ip)
         */
        for (i = 0; i < UST_DL_STATE_TABLE_SIZE; i++) {
                struct cds_hlist_head *head;
-               struct lttng_ust_dl_node *e;
+               struct lttng_ust_dl_node *e, *tmp;
 
                head = &dl_state_table[i];
-               cds_hlist_for_each_entry_2(e, head, node) {
+               cds_hlist_for_each_entry_safe_2(e, tmp, head, node) {
                        if (e->marked) {
                                if (!e->traced) {
                                        trace_lib_load(&e->bin_data, ip);
@@ -557,7 +557,7 @@ void lttng_ust_dl_update(void *ip)
         * Force the allocation of lttng-ust TLS variables when called from
         * dlopen/dlclose instrumentation.
         */
-       lttng_ust_alloc_tls();
+       lttng_ust_common_init_thread(0);
 
        data.exec_found = 0;
        data.first = true;
This page took 0.02524 seconds and 4 git commands to generate.