From f7bbd50246fde81a4ef90fa6bd78e441fccdbb40 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Tue, 14 Aug 2012 11:22:41 -0400 Subject: [PATCH] Fix: assign the current clock for mmap traces This assignation was missing in the code path for opening mmap traces. Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- formats/ctf/ctf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 69917f7f..69600d1f 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1746,6 +1746,11 @@ int ctf_open_mmap_stream_read(struct ctf_trace *td, if (ret) goto error_index; + /* + * For now, only a single slock is supported. + */ + file_stream->parent.current_clock = td->single_clock; + /* Add stream file to stream class */ g_ptr_array_add(file_stream->parent.stream_class->streams, &file_stream->parent); -- 2.34.1