Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
}
}
- if (!first_packet && file_stream->stream_id != stream_id) {
+ if (!first_packet && file_stream->stream.stream_id != stream_id) {
fprintf(stdout, "[error] Stream ID is changing within a stream.\n");
return -EINVAL;
}
if (first_packet) {
- file_stream->stream_id = stream_id;
+ file_stream->stream.stream_id = stream_id;
if (stream_id >= td->streams->len) {
fprintf(stdout, "[error] Stream %" PRIu64 " is not declared in metadata.\n", stream_id);
return -EINVAL;
struct ctf_stream {
struct ctf_stream_class *stream_class;
uint64_t timestamp; /* Current timestamp, in ns */
+ uint64_t stream_id;
struct definition_struct *trace_packet_header;
struct definition_struct *stream_packet_context;
};
struct ctf_file_stream {
- uint64_t stream_id;
struct ctf_stream stream;
struct ctf_stream_pos pos; /* current stream position */
};