revert struct reference pointer sizes to i8 to ensure that compiler does not optimize

This commit is contained in:
2025-10-27 03:28:16 +05:30
parent ac74b03b14
commit 07580dabf2
3 changed files with 13 additions and 14 deletions

View File

@ -13,10 +13,10 @@ from ctypes import c_int64, c_int32, c_void_p # noqa: F401
@bpf
@section("tracepoint/syscalls/sys_enter_execve")
def hello_world(ctx: struct_trace_event_raw_sys_enter) -> c_int32:
def hello_world(ctx: struct_trace_event_raw_sys_enter) -> c_int64:
b = ctx.id
print(f"This is context field {b}")
return c_int32(0)
return c_int64(0)
@bpf