new LttEventPosition structure for backword seeking
[lttv.git] / ltt / branches / poly / include / ltt / ltt.h
index fc00a14d78888728966de71933f30437c0496674..296c82218b3462e27fd6407c80f29aee464ab997 100644 (file)
@@ -82,6 +82,11 @@ typedef struct _LttTime {
 
 typedef uint64_t LttCycleCount;
 
+/* Event positions are used to seek within a tracefile based on
+   the block number and event position within the block. */
+
+typedef struct _LttEventPosition LttEventPosition;
+
 
 /* Differences between architectures include word sizes, endianess,
    alignment, floating point format and calling conventions. For a
@@ -135,8 +140,8 @@ do \
   (T2).tv_nsec = (T1).tv_nsec * (FLOAT);  \
   if((T2).tv_nsec >= 1000000000)\
     {\
-    (T2).tv_sec += (T3).tv_nsec / 1000000000;\
-    (T2).tv_nsec = (T3).tv_nsec % 1000000000;\
+    (T2).tv_sec += (T2).tv_nsec / 1000000000;\
+    (T2).tv_nsec = (T2).tv_nsec % 1000000000;\
     }\
 } while(0)
 
This page took 0.02357 seconds and 4 git commands to generate.