mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-01-07 13:07:56 +08:00
309 B
309 B
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