diff --git a/README.md b/README.md index c2518fd..643e09e 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,7 @@ apt install clang llvm libbpf-dev libelf-dev pkg-config make git bpftool xdp-too Compile the eBPF program from the source code: ```bash -clang -O2 -g -Wall -target bpf \ - -D__BPF_TRACING__ \ - -I/usr/include \ - -I/usr/include/linux \ - -c main.c -o main.o +clang -O2 -g -Wall -target bpf -D__BPF_TRACING__ -I /usr/src/linux-headers-$(uname -r)/include -c main.c -o main.o ``` This will generate the object file `main.o` which contains the compiled eBPF code.