initialize fields of LttTrace to ensure deterministic behavior and that valgrid does...
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Thu, 30 Jul 2009 18:50:23 +0000 (14:50 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 10 Aug 2009 16:21:40 +0000 (12:21 -0400)
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.024655 seconds and 4 git commands to generate.