- /* Append to the cycles_index. */
- g_array_append_val(file_stream->pos.packet_cycles_index,
- packet_index);
- /* Convert the timestamps and append to the real_index. */
- packet_index.timestamp_begin = ctf_get_real_timestamp(
- &file_stream->parent, packet_index.timestamp_begin);
- packet_index.timestamp_end = ctf_get_real_timestamp(
- &file_stream->parent, packet_index.timestamp_end);
- g_array_append_val(file_stream->pos.packet_real_index,
- packet_index);
-
- //compute_discarded_events(file_stream, pos);
-
- packet_index = g_array_index(pos->packet_cycles_index,
- struct packet_index, pos->cur_index);