X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fltt-private.h;h=6a0c4578efda332180f68a944eb777881d4ddf3c;hb=b7576a11ffb55f920d8106b6dedfd2c5d4e2a1b5;hp=25f2d82443f3b5c94e1977b2ceee9df7fd8bafa2;hpb=3b10b765f2ed7b5758cf37c4dea8cb511edd289a;p=lttv.git diff --git a/ltt/branches/poly/ltt/ltt-private.h b/ltt/branches/poly/ltt/ltt-private.h index 25f2d824..6a0c4578 100644 --- a/ltt/branches/poly/ltt/ltt-private.h +++ b/ltt/branches/poly/ltt/ltt-private.h @@ -137,21 +137,42 @@ struct ltt_event_header_nohb { uint16_t event_size; } LTT_PACKED_STRUCT; -struct ltt_trace_header { + +/* Block and trace headers */ + +struct ltt_trace_header_any { uint32_t magic_number; uint32_t arch_type; uint32_t arch_variant; + uint32_t float_word_order; uint8_t arch_size; - //uint32_t system_type; - uint8_t major_version; - uint8_t minor_version; - uint8_t flight_recorder; - uint8_t has_heartbeat; - uint8_t has_alignment; /* Event header alignment */ - uint8_t has_tsc; + uint8_t major_version; + uint8_t minor_version; + uint8_t flight_recorder; + uint8_t has_heartbeat; + uint8_t has_alignment; /* Event header alignment */ + uint8_t has_tsc; } LTT_PACKED_STRUCT; +/* For version 0.3 */ + +struct ltt_trace_header_0_3 { + uint32_t magic_number; + uint32_t arch_type; + uint32_t arch_variant; + uint32_t float_word_order; + uint8_t arch_size; + uint8_t major_version; + uint8_t minor_version; + uint8_t flight_recorder; + uint8_t has_heartbeat; + uint8_t has_alignment; /* Event header alignment */ + uint8_t has_tsc; +} LTT_PACKED_STRUCT; + + + struct ltt_block_start_header { struct { struct timeval timestamp; @@ -163,10 +184,14 @@ struct ltt_block_start_header { } end; uint32_t lost_size; /* Size unused at the end of the buffer */ uint32_t buf_size; /* The size of this sub-buffer */ - struct ltt_trace_header trace; + char trace[0]; } LTT_PACKED_STRUCT; + + + + struct _LttType{ GQuark type_name; //type name if it is a named type GQuark element_name; //elements name of the struct