Skip to content

Commit

Permalink
debugging: labs: remove -D__TARGET_ARCH_arm
Browse files Browse the repository at this point in the history
The define is now hardcoded in the ebpf program for the lab, remove it
from the instructions

Signed-off-by: Alexis Lothoré <[email protected]>
  • Loading branch information
Tropicao committed Nov 22, 2024
1 parent 0fffa55 commit 855aa31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labs/debugging-ebpf/debugging-ebpf.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 855aa31

Please sign in to comment.