<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><span id="zwchr" data-marker="__DIVIDER__">---- On Sep 20, 2017, at 5:37 AM, liguang li <liguang.lee6@gmail.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><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><br><div>Why? Is there any restriction?<br></div><br><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></blockquote><div><br></div><div>Hi,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I re-implemented this patch to have the proper declarations exported, and tested<br data-mce-bogus="1"></div><div>it. It indeed works fine, and I don't expect odd side-effects.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>See https://lists.lttng.org/pipermail/lttng-dev/2017-September/027485.html<br data-mce-bogus="1"></div><div>for the resulting patch.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><br><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><br><br><div>Regards,</div><div>Liguang<br></div></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>