From 69183aa940ddc7f8bd17e84e4198d2c71498ab37 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 16 Dec 2005 21:26:17 +0000 Subject: [PATCH] support trace version 0.6 git-svn-id: http://ltt.polymtl.ca/svn@1409 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/tracefile.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) 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; -- 2.34.1