+ ret = generic_rw(&sin->pos.parent, &event_class->fields->p);
+ if (ret)
+ goto error;
+ ret = generic_rw(&sout->parent, &event_class->fields->p);
+ if (ret)
+ goto error;
}
return 0;
}
return 0;
+
+error:
+ fprintf(stdout, "[error] Unexpected end of stream. Either the trace data stream is corrupted or metadata description does not match data layout.\n");
+ return ret;
}
static
}
static
-int print_stream(struct format *fmt_write, struct ctf_text_stream_pos *sout,
- struct format *fmt_read, struct ctf_file_stream *sin)