<div dir="ltr"><div>Hi,<br><br>Babeltrace in live mode is not displaying the discarded events message. 
But <br>on CTF traces the discarded events message will be printed on stderr. <br></div><div><br></div><div>Why? Is there any restriction?<br></div><div><br></div><div>I added the following patch into the ctf_live_packet_seek() function, and found</div><div>it works well. Is there any side effect?</div><div><br></div><div>diff --git a/formats/lttng-live/lttng-live-comm.c b/formats/lttng-live/lttng-live-comm.c<br>index a1c95bb..dc14bf5 100644<br>--- a/formats/lttng-live/lttng-live-comm.c<br>+++ b/formats/lttng-live/lttng-live-comm.c<br>@@ -1297,6 +1297,11 @@ retry:<br>                ctf_update_current_packet_index(&file_stream->parent,<br>                                prev_index, cur_index);<br> <br>+               if ((&file_stream->parent)->stream_class->trace->parent.collection) {<br>+                       ctf_print_discarded_lost(stderr, &file_stream->parent);<br>+               }<br>+<br>+<br>                file_stream->parent.cycles_timestamp =<br>                                cur_index->ts_cycles.timestamp_begin;<br>                file_stream->parent.real_timestamp =<br></div><div>...</div><div><br></div><div><br></div><div>Regards,</div><div>Liguang<br></div>
</div>