Commit 759c76a2 authored by Gary Lin's avatar Gary Lin

hello_perf_output: match the data type of pid

Signed-off-by: default avatarGary Lin <glin@suse.com>
parent 89b1f102
......@@ -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)]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment