time _now_ works. Breaks compatibility work old traces, which were broken anyway...
[lttv.git] / ltt / branches / poly / ltt / tracefile.c
index 48621ddc9c99dfa63bce3f13a054608247a73837..67c0efe4174a29b875cdf7d1661cc33941ac4e9c 100644 (file)
@@ -1389,6 +1389,7 @@ int readBlock(LttTracefile * tf, int whichBlock)
 
   tf->a_block_start->time = getEventTime(tf);
 
+
   {
     guint64 lEventNSec;
     LttTime lTimeOffset;
@@ -1657,6 +1658,12 @@ static inline LttTime getEventTime(LttTracefile * tf)
     lEventNSec = ((double)
                  (tf->a_block_end->cycle_count - tf->a_block_start->cycle_count)
                            * tf->nsec_per_cycle);
+    g_printf("CYCLES COUNTED : %llu",
+        (gint64)((double)cycle_count * tf->nsec_per_cycle)
+                                +tf->overflow_nsec 
+                                +tf->a_block_start->cycle_count);
+
+    
   }
   /* heartbeat cycle counter is only numheartbeat<<32, not meaningful
    */
This page took 0.022346 seconds and 4 git commands to generate.