github.com/dylandreimerink/gobpfld@v0.6.1-0.20220205171531-e79c330ad608/cmd/examples/kprobe_execve_stats/bpf/compile.sh (about) 1 #!/bin/bash 2 bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h && \ 3 clang -D__TARGET_ARCH_x86 -S -target bpf -Wall -O2 -emit-llvm -c -g -I/usr/include -o - tracex1_kern.c | \ 4 llc -march=bpf -filetype=obj -o tracex1_kern -