X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=f1fdba178f0a773d28a2286dae9eee133c29e929;hp=a2403a77ab8d8906e18e59cb41d6a68684e2ba7a;hb=f60efc0e475b3c2fca3b2afc584615f6c482c9e7;hpb=86b06ede131de636cd9ee62ea79d37f86e75c257 diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index a2403a77..f1fdba17 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -699,6 +699,9 @@ void ctf_packet_seek(struct stream_pos *stream_pos, size_t index, int whence) break; } case SEEK_SET: + packet_index = &g_array_index(pos->packet_cycles_index, + struct packet_index, index); + pos->last_events_discarded = packet_index->events_discarded; pos->cur_index = index; file_stream->parent.prev_real_timestamp = 0; file_stream->parent.prev_real_timestamp_end = 0; @@ -1517,7 +1520,7 @@ int ctf_open_file_stream_read(struct ctf_trace *td, const char *path, int flags, if (ret) goto error_def; /* - * For now, only a single slock is supported. + * For now, only a single clock per trace is supported. */ file_stream->parent.current_clock = td->single_clock; ret = create_stream_packet_index(td, file_stream); @@ -1746,7 +1749,7 @@ int ctf_open_mmap_stream_read(struct ctf_trace *td, goto error_index; /* - * For now, only a single slock is supported. + * For now, only a single clock per trace is supported. */ file_stream->parent.current_clock = td->single_clock;