Merge pull request #830 from lcp/fix-data_t
hello_perf_output: match the data type of pid
diff --git a/examples/tracing/hello_perf_output.py b/examples/tracing/hello_perf_output.py
index 78f94e6..cfff264 100755
--- a/examples/tracing/hello_perf_output.py
+++ b/examples/tracing/hello_perf_output.py
@@ -37,7 +37,7 @@
# define output data structure in Python
TASK_COMM_LEN = 16 # linux/sched.h
class Data(ct.Structure):
- _fields_ = [("pid", ct.c_ulonglong),
+ _fields_ = [("pid", ct.c_uint),
("ts", ct.c_ulonglong),
("comm", ct.c_char * TASK_COMM_LEN)]