Added test on tc clasiffier, added pinned maps, and obtaining the fd from other maps in order to synchronize between programs

This commit is contained in:
h3xduck
2022-05-10 19:09:52 -04:00
parent 4211d0b5d5
commit f2c3624e8b
11 changed files with 2988 additions and 2690 deletions

View File

@@ -100,8 +100,8 @@ $(APPS): %: $(OUTPUT)/%.o $(LIBBPF_OBJ) $(USER_INCLUDES_OBJ) | $(OUTPUT)
$(Q)$(CC) $(CFLAGS) $(INCLUDES) $^ -lelf -lbpf -lz -lssl -lcrypto -Wno-deprecated-declarations -o bin/$@
$(Q)rm $(USER_INCLUDES_OBJ)
tckit: $(abspath $(EBPF)/include/bpf)/tc.c
clang -O2 -emit-llvm -c $(abspath $(EBPF)/include/bpf)/tc.c -o - | \
tckit: $(abspath $(EBPF)/include/bpf)/tc.c $(LIBBPF_OBJ)
clang -O2 -emit-llvm -g -c $(abspath $(EBPF)/include/bpf)/tc.c -o - | \
llc -march=bpf -mcpu=probe -filetype=obj -o tc.o