ctf: notif-iter: pass current stream ID to get_stream() medop
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 5 Jul 2017 16:14:47 +0000 (12:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Jul 2017 21:26:39 +0000 (17:26 -0400)
commit0659c536a413b39e3cec87992499bca17ef95546
tree785acdd2183fa8c9e3557dc31bb4d03fe5de34a6
parent36f9b85b3fdbf208610d92b449d38839b57d2486
ctf: notif-iter: pass current stream ID to get_stream() medop

Make the notif iter's get_stream() medop receive the current stream
(instance) ID as a parameter, if any, so that the callee can create a
stream with bt_ctf_stream_create_with_id(), if this is needed, with the
appropriate stream ID which is only known dynamically after decoding the
first packet header.

In the case of src.ctf.fs, the streams are already created with the
appropriate stream IDs because the component deals with data stream file
groups and must mark the trace as static at creation time, so the new
parameter is ignored. In the case of src.ctf.lttng-live, we cannot read
the first packet header and then rewind (or it is rather complicated to
do so), so the stream object is created the first time get_stream() is
called with the received ID.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/common/notif-iter/notif-iter.c
plugins/ctf/common/notif-iter/notif-iter.h
plugins/ctf/fs-src/data-stream-file.c
plugins/ctf/lttng-live/data-stream.c
This page took 0.026312 seconds and 4 git commands to generate.