X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly-0.7.0%2Fltt%2Fltt-private.h;h=456ce95f260112bc440ecc435ff614f12e80695c;hb=edaad0938c3fa53fb492a5cf4f0927b3639a28aa;hp=666f1f338b82d974cf4474828044adb6e9986f49;hpb=18d7787a7dc440ddd328c5638d11a0de69a01ab1;p=lttv.git diff --git a/ltt/branches/poly-0.7.0/ltt/ltt-private.h b/ltt/branches/poly-0.7.0/ltt/ltt-private.h index 666f1f33..456ce95f 100644 --- a/ltt/branches/poly-0.7.0/ltt/ltt-private.h +++ b/ltt/branches/poly-0.7.0/ltt/ltt-private.h @@ -187,18 +187,44 @@ struct ltt_trace_header_0_4 { uint64_t start_freq; uint64_t start_tsc; uint64_t start_monotonic; - struct timespec start_time; + struct timespec start_time; // not portable +} LTT_PACKED_STRUCT; + +/* For version 0.5 */ + +struct ltt_trace_header_0_5 { + 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; + uint64_t start_freq; + uint64_t start_tsc; + uint64_t start_monotonic; + //struct timespec start_time; // not portable + uint64_t start_time_sec; + uint64_t start_time_usec; } LTT_PACKED_STRUCT; struct ltt_block_start_header { struct { - struct timeval timestamp; + //struct timeval timestamp; + uint64_t timestamp_sec; + uint64_t timestamp_usec; uint64_t cycle_count; uint64_t freq; } begin; struct { - struct timeval timestamp; + //struct timeval timestamp; + uint64_t timestamp_sec; + uint64_t timestamp_usec; uint64_t cycle_count; uint64_t freq; } end;