diff --git a/labs/debugging-ebpf/debugging-ebpf.tex b/labs/debugging-ebpf/debugging-ebpf.tex index ed8ca4cf76..c1e05bbe7b 100644 --- a/labs/debugging-ebpf/debugging-ebpf.tex +++ b/labs/debugging-ebpf/debugging-ebpf.tex @@ -85,7 +85,7 @@ \section{libbpf} \end{bashinput} \item Next you need to build your eBPF program into a loadable object: \begin{bashinput} -$ clang -target bpf -D__TARGET_ARCH_arm -g -O2 -c trace_programs.bpf.c -o trace_programs.bpf.o +$ clang -target bpf -g -O2 -c trace_programs.bpf.c -o trace_programs.bpf.o \end{bashinput} {\em Note: since our program deals with pt\_regs, it is not portable between architectures, that's why we have to provide the target architecture with \code{__TARGET_ARCH_arm}} \item Finally, generate a C skeleton header from this object with bpftool and libbpf