struct lttng_pipe *ust32_channel_rotate_pipe = NULL,
*ust64_channel_rotate_pipe = NULL,
*kernel_channel_rotate_pipe = NULL;
+ struct timer_thread_parameters timer_thread_ctx;
init_kernel_workarounds();
retval = -1;
goto exit_init_data;
}
+ /*
+ * The write-side of the pipe is used by the timer thread to wakeup
+ * the rotation thread when needed.
+ */
+ timer_thread_ctx.rotate_timer_pipe = rotate_timer_pipe[1];
/* 64 bits consumerd path setup */
ret = snprintf(ustconsumer64_data.err_unix_sock_path, PATH_MAX,
/* Create timer thread. */
ret = pthread_create(&timer_thread, default_pthread_attr(),
- sessiond_timer_thread, NULL);
+ sessiond_timer_thread, &timer_thread_ctx);
if (ret) {
errno = ret;
PERROR("pthread_create timer");