Fix: assign the current clock for mmap traces
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 14 Aug 2012 15:22:41 +0000 (11:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 Aug 2012 15:22:41 +0000 (11:22 -0400)
This assignation was missing in the code path for opening mmap traces.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c

index 69917f7fb5d9cfc8dcaf246128f77d93557d7c6d..69600d1f8ca1b6e21e858eee326a2c236e0b2165 100644 (file)
@@ -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);
This page took 0.033811 seconds and 4 git commands to generate.