X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fltt-private.h;h=72d2ebf0c50e34b182883afb9a89af78f466c1b8;hb=ef2b0f6126573732140ab56b653711de2cffbb4a;hp=7327ca79291d861a291ce8b509c35b8238d885d7;hpb=2312de30ce2be53f81c4eaaa772ffff21511b509;p=lttv.git diff --git a/ltt/branches/poly/ltt/ltt-private.h b/ltt/branches/poly/ltt/ltt-private.h index 7327ca79..72d2ebf0 100644 --- a/ltt/branches/poly/ltt/ltt-private.h +++ b/ltt/branches/poly/ltt/ltt-private.h @@ -179,9 +179,9 @@ struct ltt_trace_header_0_3 { uint8_t has_tsc; } LTT_PACKED_STRUCT; -/* For version 0.4 */ +/* For version 0.6 */ -struct ltt_trace_header_0_4 { +struct ltt_trace_header_0_6 { uint32_t magic_number; uint32_t arch_type; uint32_t arch_variant; @@ -192,22 +192,28 @@ struct ltt_trace_header_0_4 { uint8_t flight_recorder; uint8_t has_heartbeat; uint8_t has_alignment; /* Event header alignment */ - uint8_t has_tsc; + uint8_t has_tsc; uint64_t start_freq; uint64_t start_tsc; uint64_t start_monotonic; - struct timeval start_time; + //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; @@ -454,7 +460,5 @@ static inline unsigned int ltt_align(size_t align_drift, return ((alignment - align_drift) & (alignment-1)); } -off_t field_align(LttTracefile *tf, LttField *field, off_t offset); - #endif /* LTT_PRIVATE_H */