Files
python-bpf/examples/execve2.py
Pragyansh Chaturvedi acfb8b4424 revert changes to examples
2025-09-07 13:54:31 +05:30

14 lines
279 B
Python

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