X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Fbuffers.c;h=206d5e7404f75a793ae3ae949dcdf23c6081022b;hb=24232db7acbee1a6b6fc99e91dcd5d1b89a5f6da;hp=849cad7ad9326031cf7a42ef0a086f60d8b3300b;hpb=1e8c9e7b5464b708572fe0d28f9d8bf572784e45;p=ust.git 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); + } } /*