Files
python-bpf/examples/c-form/example.bpf.c
2025-08-30 18:49:08 +05:30

12 lines
218 B
C

#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
SEC("tracepoint/syscalls/sys_enter_execve")
int trace_execve(void *ctx)
{
bpf_printk("execve called\n");
return 0;
}
char LICENSE[] SEC("license") = "GPL";