Add struct malloc, add struct instantiation to example

This commit is contained in:
Pragyansh Chaturvedi
2025-09-21 04:48:50 +05:30
parent 63c44fa48c
commit 36c2c0b695
2 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,7 @@ def events() -> PerfEventArray:
@bpf
@section("tracepoint/syscalls/sys_enter_clone")
def hello(ctx: c_void_p) -> c_int32:
dataobj = data_t()
ts = ktime()
process_id = pid()
print(f"clone called at {ts} by pid {process_id}")