From 855aa3119280290eed89758710b7534fff4f956f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Fri, 22 Nov 2024 10:16:19 +0100 Subject: [PATCH] debugging: labs: remove -D__TARGET_ARCH_arm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The define is now hardcoded in the ebpf program for the lab, remove it from the instructions Signed-off-by: Alexis Lothoré --- labs/debugging-ebpf/debugging-ebpf.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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