-typedef struct _trace_header_event {
- //information of the machine type
- uint32_t arch_type; /* Type of architecture */
- uint32_t arch_variant; /* Variant of the given type of architecture */
- uint32_t system_type; /* Operating system type */
- char system_name[32]; /* system name */
- // uint32_t magic_number; /* Magic number to identify a trace */
- ltt_arch_size arch_size; /* data type size */
- ltt_arch_endian arch_endian; /* endian type : little or big */
-
- //format of fields
- uint8_t time_size; /* time size */
- uint8_t time_granul; /* time granularity */
- uint8_t id_size; /* size of combined facility/event ids */
-
- //other elements
- uint32_t ip_addr; /* IP of the machine */
- uint8_t cpu_number; /* number of CPU */
- uint8_t cpu_id; /* cpu id */
- uint8_t cpu_number_used; /* the number of the cpu used in the tracefile */
- uint32_t buffer_size; /* Size of blocks */
-} LTT_PACKED_STRUCT trace_header_event;
-
-
-typedef struct _block_header {
- ltt_time time; /* Time stamp of this block */
- ltt_cycle_count cycle_count; /* cycle count of the event */
- uint32_t event_count; /* event count */
-} LTT_PACKED_STRUCT block_header;
-
-
-typedef struct _block_footer {
- uint32_t unused_bytes; /* unused bytes at the end of the block */
- ltt_time time; /* Time stamp of this block */
- ltt_cycle_count cycle_count; /* cycle count of the event */
-} LTT_PACKED_STRUCT block_footer;
-
-
-struct _ltt_type{
- char * element_name; //elements name of the struct or type name
+typedef struct _FacilityLoad{
+ char * name;
+ LttChecksum checksum;
+ guint32 base_code;
+} LTT_PACKED_STRUCT FacilityLoad;
+
+typedef struct _BlockStart {
+ LttTime time; //Time stamp of this block
+ LttCycleCount cycle_count; //cycle count of the event
+ guint32 block_id; //block id
+} LTT_PACKED_STRUCT BlockStart;
+
+typedef struct _BlockEnd {
+ LttTime time; //Time stamp of this block
+ LttCycleCount cycle_count; //cycle count of the event
+ guint32 block_id; //block id
+} LTT_PACKED_STRUCT BlockEnd;
+
+typedef struct _TimeHeartbeat {
+ LttTime time; //Time stamp of this block
+ LttCycleCount cycle_count; //cycle count of the event
+} LTT_PACKED_STRUCT TimeHeartbeat;
+
+
+struct _LttType{
+ char * type_name; //type name if it is a named type
+ char * element_name; //elements name of the struct