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:23:19 +0000 (17:23 -0400)
commitb92735af1ce0311f1243db40ea238a0b6ffcb1c1
treeaaeef3f5ee571752f08aeb0f058ad22b7e8b3f32
parent05afcecd0985f33c0fd535d95adb16ed47559121
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.025487 seconds and 4 git commands to generate.