mestery / psabpf

C API & command line tool to manage PSA-eBPF programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  1. Make sure you have installed dependencies:
    sudo apt install iproute2 make cmake gcc git libgmp-dev libelf-dev zlib1g-dev libjansson-dev
  2. Get the code with submodules:
    git clone --recursive https://github.com/P4-Research/psabpf.git
    cd psabpf
  3. Build dependencies:
    ./build_libbpf.sh
  4. Build the code and install binary file:
    mkdir build
    cd build
    cmake ..
    make -j4
    sudo make install

Note that psabpf-ctl is statically linked with shipped libbpf, so there is no need to install this library system-wide.

About

C API & command line tool to manage PSA-eBPF programs

License:Apache License 2.0


Languages

Language:C 97.0%Language:Python 1.2%Language:P4 1.1%Language:CMake 0.5%Language:Shell 0.2%