Skip to content

Latest commit

 

History

History

execsnoop-libbpf

generate vmlinux.h

bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h

compiled into BPF ELF file

clang -O2 -g -target bpf -c execsnoop.bpf.c -o execsnoop.bpf.o

generate BPF skeleton .skel.h

bpftool gen skeleton execsnoop.bpf.o > execsnoop.skel.h