Version 2.9.7
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index 1a279517a3cb8945767d312895068e43301003d6..f8e450e1d6c3335ceadd59c79fa41768324edf72 100644 (file)
@@ -418,6 +418,7 @@ void lttng_ust_fixup_tls(void)
        lttng_fixup_nest_count_tls();
        lttng_fixup_procname_tls();
        lttng_fixup_ust_mutex_nest_tls();
+       lttng_ust_fixup_perf_counter_tls();
        lttng_ust_fixup_fd_tracker_tls();
 }
 
@@ -1439,7 +1440,6 @@ void *ust_listener_thread(void *arg)
        long timeout;
 
        lttng_ust_fixup_tls();
-       lttng_ust_fd_tracker_register_thread();
        /*
         * If available, add '-ust' to the end of this thread's
         * process name
@@ -2028,6 +2028,7 @@ void ust_before_fork(sigset_t *save_sigset)
        ust_lock_nocheck();
        rcu_bp_before_fork();
        lttng_ust_lock_fd_tracker();
+       lttng_perf_lock();
 }
 
 static void ust_after_fork_common(sigset_t *restore_sigset)
@@ -2035,6 +2036,7 @@ static void ust_after_fork_common(sigset_t *restore_sigset)
        int ret;
 
        DBG("process %d", getpid());
+       lttng_perf_unlock();
        lttng_ust_unlock_fd_tracker();
        ust_unlock();
 
This page took 0.023551 seconds and 4 git commands to generate.