mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
12 lines
235 B
Python
12 lines
235 B
Python
from pythonbpf.decorators import tracepoint, syscalls
|
|
from ctypes import c_void_p, c_int32
|
|
|
|
|
|
@tracepoint(syscalls.sys_clone)
|
|
def trace_clone(ctx: c_void_p) -> c_int32:
|
|
print("Hello, World!")
|
|
return c_int32(0)
|
|
|
|
|
|
LICENSE = "GPL"
|