README.md aktualisiert
This commit is contained in:
parent
37ceda168f
commit
76e8efa0b7
@ -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:
|
Compile the eBPF program from the source code:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clang -O2 -g -Wall -target bpf \
|
clang -O2 -g -Wall -target bpf -D__BPF_TRACING__ -I /usr/src/linux-headers-$(uname -r)/include -c main.c -o main.o
|
||||||
-D__BPF_TRACING__ \
|
|
||||||
-I/usr/include \
|
|
||||||
-I/usr/include/linux \
|
|
||||||
-c main.c -o main.o
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This will generate the object file `main.o` which contains the compiled eBPF code.
|
This will generate the object file `main.o` which contains the compiled eBPF code.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user