X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Ffrontend_internal.h;h=d170e9abd46b27b2cf269bfd1ae40ea33413e8ac;hb=5b3cf4f924befda843a7736daf84f8ecae5e86a4;hp=47c080297ebd45ffd723de7c78caa6130fa672d3;hpb=0e14d6e771153a9d4f1b52cb57e3fbce52d1749d;p=lttng-modules.git diff --git a/lib/ringbuffer/frontend_internal.h b/lib/ringbuffer/frontend_internal.h index 47c08029..d170e9ab 100644 --- a/lib/ringbuffer/frontend_internal.h +++ b/lib/ringbuffer/frontend_internal.h @@ -367,6 +367,12 @@ void lib_ring_buffer_check_deliver(const struct lib_ring_buffer_config *config, buf, idx)); + /* + * Increment the packet counter while we have exclusive + * access. + */ + subbuffer_inc_packet_count(config, &buf->backend, idx); + /* * Set noref flag and offset for this subbuffer id. * Contains a memory barrier that ensures counter stores