X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fust-consumer%2Fust-consumer.h;h=0089ddf17ab250efa064b539a148cc956cf1034a;hp=76b4eeece093b5804bfe51e4e33a0928a9370649;hb=f5204c9440be52e1b17bbb2c82450277ec02a583;hpb=61076f74f9e7ae286fe140d82ed0ac86895e3690 diff --git a/src/common/ust-consumer/ust-consumer.h b/src/common/ust-consumer/ust-consumer.h index 76b4eeece..0089ddf17 100644 --- a/src/common/ust-consumer/ust-consumer.h +++ b/src/common/ust-consumer/ust-consumer.h @@ -30,14 +30,14 @@ /* * Mmap the ring buffer, read it and write the data to the tracefile. * - * Returns the number of bytes written. + * Returns the number of bytes written, else negative value on error. */ -extern int lttng_ustconsumer_on_read_subbuffer_mmap( +extern ssize_t lttng_ustconsumer_on_read_subbuffer_mmap( struct lttng_consumer_local_data *ctx, struct lttng_consumer_stream *stream, unsigned long len); /* Not implemented */ -extern int lttng_ustconsumer_on_read_subbuffer_splice( +extern ssize_t lttng_ustconsumer_on_read_subbuffer_splice( struct lttng_consumer_local_data *ctx, struct lttng_consumer_stream *stream, unsigned long len); @@ -76,7 +76,7 @@ void lttng_ustconsumer_on_stream_hangup(struct lttng_consumer_stream *stream); #else /* HAVE_LIBLTTNG_UST_CTL */ static inline -int lttng_ustconsumer_on_read_subbuffer_mmap( +ssize_t lttng_ustconsumer_on_read_subbuffer_mmap( struct lttng_consumer_local_data *ctx, struct lttng_consumer_stream *stream, unsigned long len) { @@ -84,7 +84,7 @@ int lttng_ustconsumer_on_read_subbuffer_mmap( } static inline -int lttng_ustconsumer_on_read_subbuffer_splice( +ssize_t lttng_ustconsumer_on_read_subbuffer_splice( struct lttng_consumer_local_data *ctx, struct lttng_consumer_stream *uststream, unsigned long len) {