From: kfraser@localhost.localdomain Date: Tue, 6 Feb 2007 23:10:05 +0000 (+0000) Subject: Fix up xentrace record extraction in xentrace_format for 64-bit X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15348^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bec98603f540df827009a761b931e9068e6599d4;p=xen.git Fix up xentrace record extraction in xentrace_format for 64-bit architectures. Signed-off-by: Thomas Friebel --- diff --git a/tools/xentrace/xentrace_format b/tools/xentrace/xentrace_format index 537785824a..36536c24a6 100644 --- a/tools/xentrace/xentrace_format +++ b/tools/xentrace/xentrace_format @@ -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