From 34032154ec1e97470e904b086d0feda0aa70bf26 Mon Sep 17 00:00:00 2001 From: yangxx Date: Fri, 18 Jul 2003 21:08:08 +0000 Subject: [PATCH] git-svn-id: http://ltt.polymtl.ca/svn@123 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/yangxx/convert/convert.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ltt/branches/yangxx/convert/convert.c b/ltt/branches/yangxx/convert/convert.c index 84c49118..52c9bb1b 100644 --- a/ltt/branches/yangxx/convert/convert.c +++ b/ltt/branches/yangxx/convert/convert.c @@ -291,7 +291,11 @@ int main(int argc, char ** argv){ size_lost = *(uint32_t*)(end_pos - sizeof(uint32_t)); end_pos = buffer + block_size - size_lost ; //buffer_end event - tBufEnd = (trace_buffer_end*)(end_pos+sizeof(uint8_t)+sizeof(uint32_t)); + if(ltt_log_cpu){ + tBufEnd = (trace_buffer_end*)(end_pos + 2 * sizeof(uint8_t)+sizeof(uint32_t)); + }else{ + tBufEnd = (trace_buffer_end*)(end_pos+sizeof(uint8_t)+sizeof(uint32_t)); + } end.seconds = tBufEnd->Time.tv_sec; end.nanoseconds = tBufEnd->Time.tv_usec; end.cycle_count = tBufEnd->TSC; -- 2.34.1