Files
python-bpf/examples/execve2.py
2025-09-07 19:19:58 +05:30

12 lines
242 B
Python

from pythonbpf.decorators import bpf, section
from ctypes import c_void_p, c_int32
@bpf
@section("tracepoint/syscalls/sys_enter_execve")
def hello(ctx: c_void_p) -> c_int32:
print("Hello, World!")
return c_int32(0)
LICENSE = "GPL"