Files
python-bpf/examples/execve2.py
Pragyansh Chaturvedi ac7f8e09f8 Implement bpf chunk ID
2025-09-06 13:33:43 +05:30

16 lines
321 B
Python

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