Skip to content

Bump golang.org/x/image in /eBPF_Visualization/eBPF_server (#564) #1

Bump golang.org/x/image in /eBPF_Visualization/eBPF_server (#564)

Bump golang.org/x/image in /eBPF_Visualization/eBPF_server (#564) #1

Workflow file for this run

name: XDP
on:
push:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Network_Subsystem/XDP_Res-Application/**'
- '.github/workflows/ebpf_xdp_bcc.yml'
pull_request:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Network_Subsystem/XDP_Res-Application/**'
- '.github/workflows/ebpf_xdp_bcc.yml'
jobs:
bcc-project-build-and-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Cache BCC build directory
id: cache-bcc
uses: actions/cache@v3
with:
path: bcc
key: ${{ runner.os }}-bcc
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get install -y linux-headers-$(uname -r)
sudo apt-get install -y python-is-python3
sudo apt-get install -y bison build-essential cmake flex git libedit-dev libllvm11 llvm-11-dev libclang-11-dev zlib1g-dev libelf-dev libfl-dev python3-distutils
sudo ln -s /usr/lib/llvm-11 /usr/local/llvm
- name: Build BCC
if: steps.cache-bcc.outputs.cache-hit != 'true'
run: |
wget https://github.com/iovisor/bcc/releases/download/v0.25.0/bcc-src-with-submodule.tar.gz
tar xf bcc-src-with-submodule.tar.gz
cd bcc/
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_CMD=python3 ..
make
- name: Install BCC
run: |
cd bcc/build/
sudo make install
- name: Run xdp_filter
run: |
cd eBPF_Supermarket/Network_Subsystem/XDP_Res-Application/
sudo python3 tools/xdp_filter/filter.py -t 5 -i lo -m 0
- name: Run xdp_fast_forward
run: |
cd eBPF_Supermarket/Network_Subsystem/XDP_Res-Application/
sudo python3 tools/xdp_fast_forward/forward.py -t 5 -i lo -m 0