X-Git-Url: https://git.lttng.org/?p=lttng-ust.git;a=blobdiff_plain;f=src%2Fcommon%2Fringbuffer%2Ffrontend.h;h=9850d71058b7b64681e1b5c0713dd1c187856c88;hp=ed0cc7d434493acf20323f53a69f3b544e1b4679;hb=f27b0770c5fe934bd90c4b20103c59f9e7f96a5b;hpb=bee7cf7546038170e69c9d52e542643f773aa6b6 diff --git a/src/common/ringbuffer/frontend.h b/src/common/ringbuffer/frontend.h index ed0cc7d4..9850d710 100644 --- a/src/common/ringbuffer/frontend.h +++ b/src/common/ringbuffer/frontend.h @@ -265,26 +265,26 @@ unsigned long lib_ring_buffer_get_records_overrun( static inline unsigned long lib_ring_buffer_get_records_lost_full( - const struct lttng_ust_ring_buffer_config *config, - struct lttng_ust_ring_buffer *buf) + const struct lttng_ust_ring_buffer_config *config __attribute__((unused)), + const struct lttng_ust_ring_buffer_ctx *ctx) { - return v_read(config, &buf->records_lost_full); + return ctx->priv->records_lost_full; } static inline unsigned long lib_ring_buffer_get_records_lost_wrap( - const struct lttng_ust_ring_buffer_config *config, - struct lttng_ust_ring_buffer *buf) + const struct lttng_ust_ring_buffer_config *config __attribute__((unused)), + const struct lttng_ust_ring_buffer_ctx *ctx) { - return v_read(config, &buf->records_lost_wrap); + return ctx->priv->records_lost_wrap; } static inline unsigned long lib_ring_buffer_get_records_lost_big( - const struct lttng_ust_ring_buffer_config *config, - struct lttng_ust_ring_buffer *buf) + const struct lttng_ust_ring_buffer_config *config __attribute__((unused)), + const struct lttng_ust_ring_buffer_ctx *ctx) { - return v_read(config, &buf->records_lost_big); + return ctx->priv->records_lost_big; } static inline