mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
add vmlinux expressions to eval expr
This commit is contained in:
@ -16,8 +16,8 @@ from ctypes import c_int64
|
||||
@bpf
|
||||
@section("tracepoint/syscalls/sys_enter_execve")
|
||||
def hello_world(ctx: struct_trace_event_raw_sys_enter) -> c_int64:
|
||||
print("Hello, World!")
|
||||
return c_int64(0)
|
||||
print("Hello, World")
|
||||
return c_int64(TASK_COMM_LEN)
|
||||
|
||||
|
||||
@bpf
|
||||
|
||||
Reference in New Issue
Block a user