From 621275133f435e9d7517f95910539bd82039758f Mon Sep 17 00:00:00 2001 From: albertxu216 <145351853+albertxu216@users.noreply.github.com> Date: Fri, 10 Nov 2023 11:13:13 +0800 Subject: [PATCH] Update libbpf.yml --- .github/workflows/libbpf.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/libbpf.yml b/.github/workflows/libbpf.yml index c5cf8003a..5f84b38e5 100644 --- a/.github/workflows/libbpf.yml +++ b/.github/workflows/libbpf.yml @@ -22,17 +22,12 @@ jobs: - name: Install dependencies run: | - sudo apt install clang libelf1 libelf-dev zlib1g-dev - sudo apt install libbpf-dev - sudo apt install -y linux-tools-5.15.0-53-generic - sudo apt install -y linux-cloud-tools-5.15.0-53-generic + sudo apt update + sudo apt install libbpf-dev clang llvm libelf-dev libpcap-dev gcc-multilib build-essential + git submodule update --init --recursive - name: Run cs_delay run: | cd eBPF_Supermarket/CPU_Subsystem/cs_delay/libbpf_cs_delay - # sudo bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h - clang -g -O2 -target bpf -D__TARGET_ARCH_x86 -I/usr/include/x86_64-linux-gnu -I. -c cs_delay.bpf.c -o cs_delay.bpf.o - sudo bpftool gen skeleton cs_delay.bpf.o > cs_delay.skel.h - clang -g -O2 -Wall -I . -c cs_delay.c -o cs_delay.o - clang -Wall -O2 -g cs_delay.o -static -lbpf -lelf -lz -o cs_delay - sudo ./cs_delay \ No newline at end of file + make cs_delay + sudo ./cs_delay