src.ctf.fs: always set the correct trace IR stream ID
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 12 May 2024 11:42:00 +0000 (07:42 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit529a1450584b1c469ca4d7b248a043ba732d33bf
treebe1c8e1c8d0b1539aee8cb1e4cbe24d473f777fd
parent017188ba3a005c447e0eef7ff85f10be26b2b298
src.ctf.fs: always set the correct trace IR stream ID

In add_ds_file_to_ds_file_group(), we don't use the original CTF data
stream ID to set the trace IR stream ID whenever the beginning timestamp
is missing.

The comment says:

    if (begin_ns == -1) {
        /*
         * No beginning timestamp to sort the stream files
         * within a stream file group, so consider that this
         * file must be the only one within its group.
         */
        stream_instance_id.reset();
    }

This might be true, but there's no need to reset the data stream ID.

Then during data stream decoding, the trace IR stream ID always matches
the CTF IR data stream ID (if any), which enables some further checks.

Furthermore, a trace which goes from `src.ctf.fs` to `sink.ctf.fs` will
keep its original data stream IDs.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I3c6ea0a3cbd913017cd00c1c07c6c6bf83b8a534
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12771
src/plugins/ctf/fs-src/fs.cpp
This page took 0.030981 seconds and 4 git commands to generate.