Files
python-bpf/examples/c-form/ex2.bpf.c
2025-09-07 19:19:58 +05:30

11 lines
221 B
C

#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
SEC("tracepoint/syscalls/sys_enter_execve")
int hello(struct pt_regs *ctx) {
bpf_printk("Hello, World!\n");
return 0;
}
char LICENSE[] SEC("license") = "GPL";