stream->events_discarded);
ctf_text_print_timestamp(stderr, pos, stream, stream->prev_timestamp);
fprintf(stderr, "] and [");
- ctf_text_print_timestamp(stderr, pos, stream, stream->timestamp);
+ ctf_text_print_timestamp(stderr, pos, stream, stream->prev_timestamp_end);
fprintf(stderr, "]. You should consider increasing the buffer size.\n");
fflush(stderr);
stream->events_discarded = 0;
{
uint32_t events_discarded_diff;
- /* Print lost event count */
+ /* For printing discarded event count */
index = &g_array_index(pos->packet_index,
struct packet_index, pos->cur_index);
events_discarded_diff = index->events_discarded;
+ file_stream->parent.prev_timestamp_end =
+ index->timestamp_end;
if (pos->cur_index > 0) {
index = &g_array_index(pos->packet_index,
struct packet_index,
assert(offset == 0); /* only seek supported for now */
pos->cur_index = 0;
file_stream->parent.prev_timestamp = 0;
+ file_stream->parent.prev_timestamp_end = 0;
break;
default:
assert(0);
struct ctf_stream {
struct ctf_stream_class *stream_class;
uint64_t timestamp; /* Current timestamp, in ns */
- uint64_t prev_timestamp;
uint64_t event_id; /* Current event ID */
int has_timestamp;
uint64_t stream_id;
/* Event discarded information */
uint32_t events_discarded;
+ uint64_t prev_timestamp; /* Last event */
+ uint64_t prev_timestamp_end; /* End-of-packet timestamp */
};