From: Pierre-Marc Fournier Date: Mon, 1 Mar 2010 21:16:54 +0000 (-0500) Subject: add debug message when events are lost in a subbuffer, on buffer_end X-Git-Tag: v0.3~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=719569e4967369c8a2e952346250f3bf97fec5f4;p=ust.git add debug message when events are lost in a subbuffer, on buffer_end --- diff --git a/libust/buffers.c b/libust/buffers.c index 849cad7..206d5e7 100644 --- a/libust/buffers.c +++ b/libust/buffers.c @@ -331,6 +331,9 @@ static notrace void ltt_buffer_end(struct ust_buffer *buf, header->cycle_count_end = tsc; header->events_lost = local_read(&buf->events_lost); header->subbuf_corrupt = local_read(&buf->corrupted_subbuffers); + if(unlikely(header->events_lost > 0)) { + DBG("Some events (%d) were lost in %s_%d", header->events_lost, buf->chan->channel_name, buf->cpu); + } } /*