direct-io.hg

changeset 13810:7379c1174155

Fix up xentrace record extraction in xentrace_format for 64-bit
architectures.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
author kfraser@localhost.localdomain
date Tue Feb 06 23:10:05 2007 +0000 (2007-02-06)
parents e212203d7d34
children e1364f2c6867
files tools/xentrace/xentrace_format
line diff
     1.1 --- a/tools/xentrace/xentrace_format	Tue Feb 06 23:01:35 2007 +0000
     1.2 +++ b/tools/xentrace/xentrace_format	Tue Feb 06 23:10:05 2007 +0000
     1.3 @@ -107,6 +107,9 @@ while not interrupted:
     1.4  
     1.5          (tsc, event, d1, d2, d3, d4, d5) = struct.unpack(TRCREC, line)
     1.6  
     1.7 +        # Event field is 'uint32_t', not 'long'.
     1.8 +        event &= 0xffffffff
     1.9 +
    1.10  	#tsc = (tscH<<32) | tscL
    1.11  
    1.12  	#print i, tsc