From 5f126063fcc875c8f0e71c98d74f132a03351202 Mon Sep 17 00:00:00 2001 From: yangxx Date: Fri, 18 Jul 2003 19:54:16 +0000 Subject: [PATCH] git-svn-id: http://ltt.polymtl.ca/svn@120 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/yangxx/convert/convert.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/ltt/branches/yangxx/convert/convert.c b/ltt/branches/yangxx/convert/convert.c index 0aaa8f93..b16e8fe3 100644 --- a/ltt/branches/yangxx/convert/convert.c +++ b/ltt/branches/yangxx/convert/convert.c @@ -97,8 +97,8 @@ int main(int argc, char ** argv){ trace_buffer_start *tBufStart; trace_buffer_end *tBufEnd; trace_file_system * tFileSys; - uint16_t newId; - uint8_t evId, startId; + uint16_t newId, startId; + uint8_t evId; uint32_t time_delta, startTimeDelta; void * cur_pos, *end_pos; buffer_start start; @@ -212,7 +212,6 @@ int main(int argc, char ** argv){ evId = *(uint8_t *)cur_pos; cur_pos += sizeof(uint8_t); - time_delta = *(uint32_t*)cur_pos; cur_pos += sizeof(uint32_t); tStart = (trace_start*)cur_pos; @@ -262,6 +261,7 @@ int main(int argc, char ** argv){ int event_count = 0; beat_count = 0; + for(j=1;jTime.tv_sec; + start.nanoseconds = tBufStart->Time.tv_usec; + start.cycle_count = tBufStart->TSC; + start.block_id = tBufStart->ID; + end.block_id = start.block_id; + end_pos = buffer + block_size; //end of the buffer size_lost = *(uint32_t*)(end_pos - sizeof(uint32_t)); -- 2.34.1