Files
python-bpf/examples/c-form/ex2.bpf.c
Pragyansh Chaturvedi 81f4a0a799 Add shorter examples
2025-09-06 12:49:39 +05:30

11 lines
199 B
C

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