From: compudj Date: Fri, 16 Dec 2005 21:26:17 +0000 (+0000) Subject: support trace version 0.6 X-Git-Tag: v0.12.20~2080 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=69183aa940ddc7f8bd17e84e4198d2c71498ab37;p=lttv.git support trace version 0.6 git-svn-id: http://ltt.polymtl.ca/svn@1409 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index de046b16..37a7c035 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -250,30 +250,7 @@ int parse_trace_header(void *header, LttTracefile *tf, LttTrace *t) return 1; } break; - case 4: - { - struct ltt_trace_header_0_4 *vheader = - (struct ltt_trace_header_0_4 *)header; - tf->buffer_header_size = - sizeof(struct ltt_block_start_header) - + sizeof(struct ltt_trace_header_0_4); - if(t) { - t->start_freq = ltt_get_uint64(LTT_GET_BO(tf), - &vheader->start_freq); - t->start_tsc = ltt_get_uint64(LTT_GET_BO(tf), - &vheader->start_tsc); - t->start_monotonic = ltt_get_uint64(LTT_GET_BO(tf), - &vheader->start_monotonic); - t->start_time = ltt_get_time(LTT_GET_BO(tf), - &vheader->start_time); - t->start_time.tv_nsec *= 1000; /* microsec to nanosec */ - - t->start_time_from_tsc = ltt_time_from_uint64( - (double)t->start_tsc * 1000000.0 / (double)t->start_freq); - } - } - break; - case 5: + case 6: { struct ltt_trace_header_0_5 *vheader = (struct ltt_trace_header_0_5 *)header;