Implement bpf chunk ID

This commit is contained in:
Pragyansh Chaturvedi
2025-09-06 13:33:43 +05:30
parent 88fa690493
commit ac7f8e09f8
2 changed files with 18 additions and 1 deletions

View File

@ -1,10 +1,11 @@
from pythonbpf.decorators import section
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!")