X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fringbuffer%2Fconfig.h;h=43523de3055b55414a969d1ac30bee9610615e2c;hb=20ae85941b8ff6f04366177c6ab6aeda714fb9d8;hp=d6dc5af6afcf61b40b9e5eb3161238a07158bad6;hpb=e20c0fec4a2e120143f2e71c63d9fcd664af55a4;p=lttng-modules.git diff --git a/include/ringbuffer/config.h b/include/ringbuffer/config.h index d6dc5af6..43523de3 100644 --- a/include/ringbuffer/config.h +++ b/include/ringbuffer/config.h @@ -44,7 +44,8 @@ struct lttng_kernel_ring_buffer_client_cb { void (*buffer_begin) (struct lttng_kernel_ring_buffer *buf, u64 tsc, unsigned int subbuf_idx); void (*buffer_end) (struct lttng_kernel_ring_buffer *buf, u64 tsc, - unsigned int subbuf_idx, unsigned long data_size); + unsigned int subbuf_idx, unsigned long data_size, + const struct lttng_kernel_ring_buffer_ctx *ctx); /* Optional callbacks (can be set to NULL) */ @@ -184,11 +185,19 @@ struct lttng_kernel_ring_buffer_ctx_private { u64 tsc; /* time-stamp counter value */ unsigned int rflags; /* reservation flags */ - struct lttng_kernel_ring_buffer *buf; /* + struct lttng_kernel_ring_buffer *buf; /* * buffer corresponding to processor id * for this channel */ struct lttng_kernel_ring_buffer_backend_pages *backend_pages; + + /* + * Records lost counts are only loaded into these fields before + * reserving the last bytes from the ring buffer. + */ + unsigned long records_lost_full; + unsigned long records_lost_wrap; + unsigned long records_lost_big; }; /*