#include <fcntl.h>
#include <poll.h>
#include <regex.h>
-#include <urcu/uatomic_arch.h>
+#include <urcu/uatomic.h>
#include <urcu/list.h>
#include <ust/marker.h>
{
struct trace_event_iter iter;
- lock_trace_events();
trace_event_iter_reset(&iter);
trace_event_iter_start(&iter);
fprintf(fp, "trace_event: %s\n", (*iter.trace_event)->name);
trace_event_iter_next(&iter);
}
- unlock_trace_events();
+ trace_event_iter_stop(&iter);
}
static int connect_ustconsumer(void)
pthread_mutex_unlock(&listen_sock_mutex);
pthread_mutex_unlock(&listener_thread_data_mutex);
-
/* Restore signals */
result = sigprocmask(SIG_SETMASK, &fork_info->orig_sigs, NULL);
if (result == -1) {
/* Sanitize the child */
ust_fork();
- /* Then release mutexes and reenable signals */
+ /* Release mutexes and reenable signals */
ust_after_fork_common(fork_info);
}