mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Implement bpf chunk ID
This commit is contained in:
@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user