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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 14:45:10 +0000 (10:45 -0400)
commit562e23c1eb0029151d9f25f2a3216be5788f4e2c
tree620660759c13e46e08d2f34b2ca64839bb9dfa51
parent5b600222f013e56a4df30ef0211a0a3d8d816f79
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.024777 seconds and 4 git commands to generate.