Fix up xentrace record extraction in xentrace_format for 64-bit
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 6 Feb 2007 23:10:05 +0000 (23:10 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 6 Feb 2007 23:10:05 +0000 (23:10 +0000)
architectures.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
tools/xentrace/xentrace_format

index 537785824acafe1b5e16ffbfac4a05c9746643f7..36536c24a6550f2beafb12757e7e7d5bcfbea5a4 100644 (file)
@@ -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