diff --git a/docs/tutorial_bcc_python_developer.md b/docs/tutorial_bcc_python_developer.md index f1f7a7aed50f..645c2ba9c8fb 100644 --- a/docs/tutorial_bcc_python_developer.md +++ b/docs/tutorial_bcc_python_developer.md @@ -256,7 +256,6 @@ prog = """ #include // define output data structure in C -#define MSG_MAX 32 struct data_t { u32 pid; u64 ts; @@ -283,7 +282,6 @@ b.attach_kprobe(event="sys_clone", fn_name="hello") # define output data structure in Python TASK_COMM_LEN = 16 # linux/sched.h -MSG_MAX = 32 class Data(ct.Structure): _fields_ = [("pid", ct.c_ulonglong), ("ts", ct.c_ulonglong), diff --git a/examples/tracing/hello_perf_output.py b/examples/tracing/hello_perf_output.py index faffd21a8276..78f94e6ac491 100755 --- a/examples/tracing/hello_perf_output.py +++ b/examples/tracing/hello_perf_output.py @@ -10,7 +10,6 @@ #include // define output data structure in C -#define MSG_MAX 32 struct data_t { u32 pid; u64 ts; @@ -37,7 +36,6 @@ # define output data structure in Python TASK_COMM_LEN = 16 # linux/sched.h -MSG_MAX = 32 class Data(ct.Structure): _fields_ = [("pid", ct.c_ulonglong), ("ts", ct.c_ulonglong),