mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-02-12 16:10:59 +00:00
revert changes to examples
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SEC("kprobe/sys_clone")
|
SEC("kprobe/sys_clone")
|
||||||
int hello(struct pt_regs *ctx) {
|
int hello(struct pt_regs *ctx) {
|
||||||
bpf_printk("Hello, World!");
|
bpf_printk("Hello, World!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,6 @@ from pythonbpf.decorators import bpf, section
|
|||||||
# from pythonbpf.decorators import tracepoint, syscalls
|
# from pythonbpf.decorators import tracepoint, syscalls
|
||||||
from ctypes import c_void_p, c_int32
|
from ctypes import c_void_p, c_int32
|
||||||
|
|
||||||
# @tracepoint(syscalls.sys_enter_execve)
|
|
||||||
|
|
||||||
|
|
||||||
@bpf
|
@bpf
|
||||||
@section("kprobe/sys_clone")
|
@section("kprobe/sys_clone")
|
||||||
|
|||||||
Reference in New Issue
Block a user