Fix: src.ctf.lttng-live: missing ordering within traces and streams
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 12 Aug 2019 21:35:01 +0000 (17:35 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 13 Aug 2019 01:13:35 +0000 (21:13 -0400)
commit07afb6bc2e161cfcc6c99d82bdebdfff12de8d63
treeba174cbbb7d00d76a9a10fc9156836b4442148d6
parent2080bf80f9306106500dd5f9e7d0493b43b9dd79
Fix: src.ctf.lttng-live: missing ordering within traces and streams

Issue
=====
Sorting of messages with the same timestamps are different from the
messages sorted by the a `flt.utils.muxer` component. This is caused by
the fact that we are not sorting messages within sessions and traces
but only across the different session currently handled by the
component.

Indeed, we need to sort messages at across three locations in the code
to ensure proper ordering: sessions, traces, and streams.

Solution
========
Handle messages with the same timestamps at each of these three
locations using the `common_muxing_compare_messages()` function.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Iadc66f3b6a12f34522f6364b3f47f15eefa87930
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1888
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/lttng-live/lttng-live.c
This page took 0.027262 seconds and 4 git commands to generate.