Add state saving functions and update processTrace accordingly.
[lttv.git] / ltt / branches / poly / include / ltt / ltt.h
index eda0a766d8963457e330ebd42756493038fcf4b7..a5f3fee076c84496fd4a783b38a0b6ac45876a93 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef LTT_H
 #define LTT_H
 
+#include <ltt/time.h>
 #include <ltt/LTTTypes.h>
 
 /* A trace is associated with a tracing session run on a single, possibly
@@ -70,16 +71,27 @@ typedef unsigned long LttChecksum;
 
 
 /* Events are usually stored with the easily obtained CPU clock cycle count,
-   ltt_cycle_count. This can be converted to the real time value, ltt_time,
+   ltt_cycle_count. This can be converted to the real time value, LttTime,
    using linear interpolation between regularly sampled values (e.g. a few 
    times per second) of the real time clock with their corresponding 
    cycle count values. */
 
-typedef struct timespec LttTime;
+
+typedef struct _TimeInterval{
+  LttTime startTime;
+  LttTime endTime;  
+} TimeInterval;
+
 
 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
    packed binary trace, endianess and size matter, assuming that the
@@ -94,8 +106,6 @@ typedef enum _LttArchEndian
 { LTT_LITTLE_ENDIAN, LTT_BIG_ENDIAN
 } LttArchEndian;
 
-
-
 #include <ltt/ltt-private.h>
 
  
This page took 0.022709 seconds and 4 git commands to generate.