X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer-timer.c;h=646d32342cdfa0a7a7552332dd3f5da2c90cc680;hb=df5b86c84d896eb2d74a8757c234492c1d1fc3be;hp=d36e2bccfdd08cb304d2d362403325db85c4c3af;hpb=528f2ffaebbc88b3fd541fa404b567b878aa5255;p=lttng-tools.git diff --git a/src/common/consumer-timer.c b/src/common/consumer-timer.c index d36e2bccf..646d32342 100644 --- a/src/common/consumer-timer.c +++ b/src/common/consumer-timer.c @@ -17,6 +17,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -27,7 +28,6 @@ #include #include #include -#include #include "consumer-timer.h" #include "consumer-testpoint.h" @@ -214,7 +214,7 @@ static int check_ust_stream(struct lttng_consumer_stream *stream) ret = -1; goto error_unlock; } - ret = ustctl_get_stream_id(stream->ustream, &stream_id); + ret = lttng_ustconsumer_get_stream_id(stream, &stream_id); if (ret < 0) { PERROR("ustctl_get_stream_id"); goto error_unlock; @@ -460,7 +460,7 @@ void consumer_timer_live_stop(struct lttng_consumer_channel *channel) * Block the RT signals for the entire process. It must be called from the * consumer main before creating the threads */ -void consumer_signal_init(void) +int consumer_signal_init(void) { int ret; sigset_t mask; @@ -471,7 +471,9 @@ void consumer_signal_init(void) if (ret) { errno = ret; PERROR("pthread_sigmask"); + return -1; } + return 0; } /*