git-svn-id: http://ltt.polymtl.ca/svn@116 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 17 Jul 2003 20:09:59 +0000 (20:09 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 17 Jul 2003 20:09:59 +0000 (20:09 +0000)
ltt/branches/yangxx/convert/convert.c

index 43f27986cfa9fec2fb87d9dbfee0af9db0c57ab8..b0f0f02cd0853cae3316888c565e059b6ce7a4d5 100644 (file)
@@ -273,7 +273,7 @@ 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;
+    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;
This page took 0.024601 seconds and 4 git commands to generate.