Use correct data type for class Data
authorNan Xiao <nan@chinadtrace.org>
Thu, 17 Aug 2017 02:56:36 +0000 (10:56 +0800)
committerBrenden Blanco <bblanco@gmail.com>
Fri, 25 Aug 2017 23:43:51 +0000 (16:43 -0700)
tools/filelife.py

index a00d3d7..9405af3 100755 (executable)
@@ -103,7 +103,7 @@ DNAME_INLINE_LEN = 255        # linux/dcache.h
 
 class Data(ct.Structure):
     _fields_ = [
-        ("pid", ct.c_ulonglong),
+        ("pid", ct.c_uint),
         ("delta", ct.c_ulonglong),
         ("comm", ct.c_char * TASK_COMM_LEN),
         ("fname", ct.c_char * DNAME_INLINE_LEN)