add debug message when events are lost in a subbuffer, on buffer_end
[ust.git] / libust / buffers.c
index 849cad7ad9326031cf7a42ef0a086f60d8b3300b..206d5e7404f75a793ae3ae949dcdf23c6081022b 100644 (file)
@@ -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);
+       }
 }
 
 /*
This page took 0.024266 seconds and 4 git commands to generate.