src.ctf.fs: deterministically sort trace's DS file groups
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 21 Sep 2019 03:34:12 +0000 (23:34 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 24 Sep 2019 19:54:19 +0000 (15:54 -0400)
commite9b3611fd9d989a57b1f384a4a638d5a6905b0e1
tree510249ff62db4ce5679af51405252d40c9fb8d06
parent2d2a59db23cb729ecd7a761d116ea4ec1fa95311
src.ctf.fs: deterministically sort trace's DS file groups

This patch makes a `src.ctf.fs` component deterministically sort its
trace's DS file groups. The order of the DS file group array directly
influences:

* The order of the output ports.
* Which DS file group gets which stream ID if the trace's packet headers
  do not contain a `stream_instance_id` field (automatic stream IDs).

It's important that, whatever the build or file system, the component
always assigns the same IDs to the same DS file group for a given trace.
This can help debugging and testing.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I105f44e7885a2974ace4d62abe0ee5384316b350
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2079
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/fs-src/fs.c
This page took 0.02396 seconds and 4 git commands to generate.