Files
python-bpf/examples/c-form/ex2.bpf.c
Pragyansh Chaturvedi acfb8b4424 revert changes to examples
2025-09-07 13:54:31 +05:30

11 lines
201 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!\n");
return 0;
}
char LICENSE[] SEC("license") = "GPL";