diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-06 23:10:05 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-06 23:10:05 +0000 |
commit | bec98603f540df827009a761b931e9068e6599d4 (patch) | |
tree | a268b54c44260dab57bad187ea0df2fc0f27a631 /tools/xentrace/xentrace_format | |
parent | 09a4bf86cfa76d98c7d2732bc56dd5b1c2851e34 (diff) | |
download | xen-bec98603f540df827009a761b931e9068e6599d4.tar.gz xen-bec98603f540df827009a761b931e9068e6599d4.tar.bz2 xen-bec98603f540df827009a761b931e9068e6599d4.zip |
Fix up xentrace record extraction in xentrace_format for 64-bit
architectures.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
Diffstat (limited to 'tools/xentrace/xentrace_format')
-rw-r--r-- | tools/xentrace/xentrace_format | 3 |
1 files changed, 3 insertions, 0 deletions
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 |