* [lttng-dev] Missing discarded events message in live-reading mode
@ 2017-09-20 9:37 liguang li
2017-09-28 14:04 ` Mathieu Desnoyers
0 siblings, 1 reply; 2+ messages in thread
From: liguang li @ 2017-09-20 9:37 UTC (permalink / raw)
Hi,
Babeltrace in live mode is not displaying the discarded events message. But
on CTF traces the discarded events message will be printed on stderr.
Why? Is there any restriction?
I added the following patch into the ctf_live_packet_seek() function, and
found
it works well. Is there any side effect?
diff --git a/formats/lttng-live/lttng-live-comm.c
b/formats/lttng-live/lttng-live-comm.c
index a1c95bb..dc14bf5 100644
--- a/formats/lttng-live/lttng-live-comm.c
+++ b/formats/lttng-live/lttng-live-comm.c
@@ -1297,6 +1297,11 @@ retry:
ctf_update_current_packet_index(&file_stream->parent,
prev_index, cur_index);
+ if
((&file_stream->parent)->stream_class->trace->parent.collection) {
+ ctf_print_discarded_lost(stderr,
&file_stream->parent);
+ }
+
+
file_stream->parent.cycles_timestamp =
cur_index->ts_cycles.timestamp_begin;
file_stream->parent.real_timestamp =
...
Regards,
Liguang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20170920/3bead9a2/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread* [lttng-dev] Missing discarded events message in live-reading mode
2017-09-20 9:37 [lttng-dev] Missing discarded events message in live-reading mode liguang li
@ 2017-09-28 14:04 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2017-09-28 14:04 UTC (permalink / raw)
---- On Sep 20, 2017, at 5:37 AM, liguang li <liguang.lee6 at gmail.com> wrote:
> Hi,
> Babeltrace in live mode is not displaying the discarded events message. But
> on CTF traces the discarded events message will be printed on stderr.
> Why? Is there any restriction?
> I added the following patch into the ctf_live_packet_seek() function, and found
> it works well. Is there any side effect?
Hi,
I re-implemented this patch to have the proper declarations exported, and tested
it. It indeed works fine, and I don't expect odd side-effects.
See https://lists.lttng.org/pipermail/lttng-dev/2017-September/027485.html
for the resulting patch.
Thanks,
Mathieu
> diff --git a/formats/lttng-live/lttng-live-comm.c
> b/formats/lttng-live/lttng-live-comm.c
> index a1c95bb..dc14bf5 100644
> --- a/formats/lttng-live/lttng-live-comm.c
> +++ b/formats/lttng-live/lttng-live-comm.c
> @@ -1297,6 +1297,11 @@ retry:
> ctf_update_current_packet_index(&file_stream->parent,
> prev_index, cur_index);
> + if ((&file_stream->parent)->stream_class->trace->parent.collection) {
> + ctf_print_discarded_lost(stderr, &file_stream->parent);
> + }
> +
> +
> file_stream->parent.cycles_timestamp =
> cur_index->ts_cycles.timestamp_begin;
> file_stream->parent.real_timestamp =
> ...
> Regards,
> Liguang
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20170928/6993a543/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-28 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-20 9:37 [lttng-dev] Missing discarded events message in live-reading mode liguang li
2017-09-28 14:04 ` Mathieu Desnoyers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox