add compatibility list
[lttv.git] / ltt / branches / poly / ltt / ltt-private.h
index 1bbe0a10ddcf9e56f0367e4785a77c0aceb19b13..666f1f338b82d974cf4474828044adb6e9986f49 100644 (file)
@@ -184,6 +184,8 @@ struct ltt_trace_header_0_4 {
   uint8_t         has_heartbeat;
   uint8_t         has_alignment;  /* Event header alignment */
        uint8_t         has_tsc;
+  uint64_t        start_freq;
+  uint64_t        start_tsc;
   uint64_t        start_monotonic;
   struct timespec start_time;
 } LTT_PACKED_STRUCT;
@@ -191,12 +193,12 @@ struct ltt_trace_header_0_4 {
 
 struct ltt_block_start_header {
   struct { 
-    uint64_t                timestamp;
+    struct timeval          timestamp;
     uint64_t                cycle_count;
     uint64_t                freq;
   } begin;
   struct {
-    uint64_t                timestamp;
+    struct timeval          timestamp;
     uint64_t                cycle_count;
     uint64_t                freq;
   } end;
@@ -354,7 +356,8 @@ typedef struct _LttBuffer {
   /* Timekeeping */
   uint64_t                tsc;       /* Current timestamp counter */
   uint64_t                freq; /* Frequency in khz */
-  double                  nsecs_per_cycle;  /* Precalculated from freq */
+  //double                  nsecs_per_cycle;  /* Precalculated from freq */
+  guint32                 cyc2ns_scale;
 } LttBuffer;
 
 struct _LttTracefile{
@@ -411,8 +414,11 @@ struct _LttTrace{
   guint8    has_heartbeat;
   guint8    has_alignment;
        guint8          has_tsc;
+  uint64_t  start_freq;
+  uint64_t  start_tsc;
   uint64_t  start_monotonic;
   LttTime   start_time;
+  LttTime   start_time_from_tsc;
 
   GData     *tracefiles;                    //tracefiles groups
 };
This page took 0.023849 seconds and 4 git commands to generate.