}
static
-int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream *stream)
+int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream_definition *stream)
{
struct ctf_text_stream_pos *pos =
container_of(ppos, struct ctf_text_stream_pos, parent);
struct ctf_stream_declaration *stream_class = stream->stream_class;
int field_nr_saved;
- struct ctf_event *event_class;
- struct ctf_stream_event *event;
+ struct ctf_event_declaration *event_class;
+ struct ctf_event_definition *event;
uint64_t id;
int ret;
int dom_print = 0;
return -EINVAL;
}
event_class = g_ptr_array_index(stream_class->events_by_id, id);
- if (!event) {
- fprintf(stderr, "[error] Event id %" PRIu64 " is unknown.\n", id);
+ if (!event_class) {
+ fprintf(stderr, "[error] Event class id %" PRIu64 " is unknown.\n", id);
return -EINVAL;
}
ctf_print_timestamp(stderr, stream, stream->prev_timestamp);
fprintf(stderr, "] and [");
ctf_print_timestamp(stderr, stream, stream->prev_timestamp_end);
- fprintf(stderr, "]. You should consider increasing the buffer size.\n");
+ fprintf(stderr, "]. You should consider recording a new trace with larger buffers or with fewer events enabled.\n");
fflush(stderr);
stream->events_discarded = 0;
}