- c: BCC apps with C bindings.
- cpp: BCC apps with cpp bindings.
- python: BCC apps with Python bindings.
BCC and its development libraries should be installed.
Please follow INSTALL.md to see the detailed guides. For example, on Ubuntu or RHEL:
# Ubuntu
sudo apt-get install bpfcc-tools libbpfcc-dev linux-headers-$(uname -r)
# RHEL
sudo yum install bcc-tools bcc-devel
Please follow INSTALL.md to see the detailed guides. For example, on Ubuntu 20.04+:
sudo apt install -y bison build-essential cmake flex git libedit-dev llvm-dev libclang-dev python zlib1g-dev libelf-dev libfl-dev python3-distutils
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build; cd bcc/build
cmake ..
make
sudo make install
cmake -DPYTHON_CMD=python3 .. # build python3 binding
pushd src/python/
make
sudo make install
popd