initialize fields of LttTrace to ensure deterministic behavior and that valgrid does...
[lttv.git] / ltt / tracefile.c
index 680bcc46d730a4f56dbfbb65b9067784dcbe5f16..9cd130558e67392cf96c9e024f2bee7928b4e6ab 100644 (file)
@@ -764,6 +764,11 @@ LttTrace *ltt_trace_open(const gchar *pathname)
   get_absolute_pathname(pathname, abs_path);
   t->pathname = g_quark_from_string(abs_path);
 
+  t->start_tsc = 0;
+  t->freq_scale = 1;
+  t->start_freq = 1;
+  t->start_time_from_tsc = ltt_time_zero;
+
   g_datalist_init(&t->tracefiles);
 
   /* Test to see if it looks like a trace */
This page took 0.022179 seconds and 4 git commands to generate.