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
}\
} while(0)
+/* (T2 = T1 * FLOAT) */
+/* WARNING : use this multiplicator carefully : on 32 bits, multiplying
+ * by more than 4 could overflow the tv_nsec.
+ */
+#define TimeMul(T2, T1, FLOAT) \
+do \
+{\
+ (T2).tv_sec = (T1).tv_sec * (FLOAT); \
+ (T2).tv_nsec = (T1).tv_nsec * (FLOAT); \
+ if((T2).tv_nsec >= 1000000000)\
+ {\
+ (T2).tv_sec += (T2).tv_nsec / 1000000000;\
+ (T2).tv_nsec = (T2).tv_nsec % 1000000000;\
+ }\
+} while(0)
+
+
#include <ltt/ltt-private.h>