mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
revert changes to examples
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
|
||||
SEC("kprobe/sys_clone")
|
||||
int hello(struct pt_regs *ctx) {
|
||||
bpf_printk("Hello, World!");
|
||||
bpf_printk("Hello, World!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -2,8 +2,6 @@ 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")
|
||||
|
||||
Reference in New Issue
Block a user