From 759c76a29d530a923ce14fa6d6aff436a0d114be Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Wed, 30 Nov 2016 17:13:37 +0800 Subject: [PATCH] hello_perf_output: match the data type of pid Signed-off-by: Gary Lin --- examples/tracing/hello_perf_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ b.attach_kprobe(event="sys_clone", fn_name="hello") # 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)] -- 2.7.4