mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add struct malloc, add struct instantiation to example
This commit is contained in:
@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user