mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
WIP functions processing
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
from pythonbpf.decorators import tracepoint
|
||||
from ctypes import c_void_p, c_int32
|
||||
|
||||
@tracepoint("syscalls:sys_enter_execve")
|
||||
def trace_execve(ctx) -> int:
|
||||
def trace_execve(ctx: c_void_p) -> c_int32:
|
||||
print("execve called\n")
|
||||
return 0
|
||||
return c_int32(0)
|
||||
|
||||
LICENSE = "GPL"
|
||||
|
||||
Reference in New Issue
Block a user