From: Julien Desfossez Date: Tue, 14 Aug 2012 15:22:41 +0000 (-0400) Subject: Fix: assign the current clock for mmap traces X-Git-Tag: v1.0.0-rc5~27 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=f7bbd50246fde81a4ef90fa6bd78e441fccdbb40;hp=2002e48a9f3f38f95de0b9cd75a6ab1f06580c95 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 --- 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);