tweak commit to add placeholder string

This commit is contained in:
Pragyansh Chaturvedi
2025-09-26 04:54:01 +05:30
parent b9ddecd6b1
commit 4ebf0480dd

View File

@ -22,13 +22,13 @@ def events() -> PerfEventArray:
@bpf
@section("tracepoint/syscalls/sys_enter_clone")
def hello(ctx: c_void_p) -> c_int32:
strobj = "Hi"
dataobj = data_t()
ts = ktime()
process_id = pid()
strobj = "hellohellohello"
dataobj.pid = process_id
dataobj.ts = ts
print(f"clone called at {ts} by pid {process_id}, str is {strobj}")
print(f"clone called at {ts} by pid {process_id}, comm {strobj}")
events.output(dataobj)
return c_int32(0)