[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix up xentrace record extraction in xentrace_format for 64-bit



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1170803405 0
# Node ID 7379c1174155c3232ba12ff6e226c70b40cd71fa
# Parent  e212203d7d34e2981e30bcc5178741f8eefb5fff
Fix up xentrace record extraction in xentrace_format for 64-bit
architectures.
Signed-off-by: Thomas Friebel <thomas.friebel@xxxxxxx>
---
 tools/xentrace/xentrace_format |    3 +++
 1 files changed, 3 insertions(+)

diff -r e212203d7d34 -r 7379c1174155 tools/xentrace/xentrace_format
--- a/tools/xentrace/xentrace_format    Tue Feb 06 23:01:35 2007 +0000
+++ b/tools/xentrace/xentrace_format    Tue Feb 06 23:10:05 2007 +0000
@@ -107,6 +107,9 @@ while not interrupted:
 
         (tsc, event, d1, d2, d3, d4, d5) = struct.unpack(TRCREC, line)
 
+        # Event field is 'uint32_t', not 'long'.
+        event &= 0xffffffff
+
        #tsc = (tscH<<32) | tscL
 
        #print i, tsc

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.