update compat
[lttv.git] / ltt / branches / poly / ltt / ltt-private.h
index d2bacd6f1742b501263484e0994f3af22f036615..c565aa22e49f96eb8140d194291b442a1807aa25 100644 (file)
@@ -251,9 +251,15 @@ struct _LttType{
   guint size;
   LttTypeEnum type_class;          //which type
   GHashTable *enum_map;                 //maps enum labels to numbers.
+  gint32 highest_value;                        //For enum
+  gint32 lowest_value;                 //For enum
   GArray *fields;     // Array of LttFields, for array, sequence, union, struct.
   GData *fields_by_name;
   guint network;  // Is the type in network byte order ?
+  //part added by gaby for fmt:
+  char *header;
+  char *separator;
+  char *footer;
 };
 
 struct _LttEventType{
@@ -263,6 +269,7 @@ struct _LttEventType{
   LttFacility * facility; //the facility that contains the event type
   GArray * fields;        //event's fields (LttField)
   GData *fields_by_name;
+  int has_compact_data;       //event header contains compact data (first field)
 };
 
 /* Structure LttEvent and LttEventPosition must begin with the _exact_ same
@@ -290,6 +297,7 @@ struct _LttEvent{
   guint  data_size;
   guint  event_size;         //event_size field of the header : 
                              //used to verify data_size from facility.
+  uint32_t compact_data;
 
   int      count;                    //the number of overflow of cycle count
   gint64 overflow_nsec;              //precalculated nsec for overflows
@@ -388,6 +396,7 @@ struct _LttTracefile{
   size_t    has_alignment;           //alignment of events in the tracefile.
                                      // 0 or the architecture size in bytes.
 
+  guint8    has_heartbeat;
   size_t    buffer_header_size;
   int       compact;                 //compact tracefile ?
   uint8_t   tsc_lsb_truncate;
@@ -432,7 +441,6 @@ struct _LttTrace{
   guint8    ltt_major_version;
   guint8    ltt_minor_version;
   guint8    flight_recorder;
-  guint8    has_heartbeat;
   guint32    freq_scale;
   uint64_t  start_freq;
   uint64_t  start_tsc;
@@ -440,6 +448,7 @@ struct _LttTrace{
   LttTime   start_time;
   LttTime   start_time_from_tsc;
   GArray    *compact_facilities;
+  uint8_t   compact_event_bits;
 
   GData     *tracefiles;                    //tracefiles groups
 };
This page took 0.024519 seconds and 4 git commands to generate.