当前位置:网站首页>BCC tool tool usage
BCC tool tool usage
2022-06-11 20:53:00 【Three kills, little schoolboy】
1. summary
BCC Is a tool set for tracking the kernel and operating programs , The software package contains some useful tools and examples , It expands BPF(Berkeley Packet Filters), Usually called eBPF , stay Linux3.15 For the first time , But most BCC The function needs to be Libux4.1 And above .
BCC Use C Language for kernel detection , And use Python and lua As a front end, it simplifies BPF Programming , It is suitable for many tasks , Such as performance analysis and network traffic control .
BCC The supported analysis tools are as follows :

1.1 List of common tools :
execsnoop
opensnoop
ext4slower (or btrfs, xfs, zfs*)
biolatency
biosnoop
cachestat
cachetop
tcpconnect
tcpaccept
tcpretrans
runqlat
profile
2. Compilation and installation
1). Download address :Releases · iovisor/bcc (github.com)
https://github.com/iovisor/bcc/releases2). file :bcc-src-with-submodule.tar.gz

3). decompression :tar xvzf bcc-src-with-submodule.tar.gz

2.1 Linux X86
2.1.1 Installation and compilation environment
sudo apt-get -y install bison build-essential cmake flex git libedit-dev \
libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev
sudo apt-get install python3-distutils
sudo apt-get install python3-pip
sudo apt-get install python3-setuptools

The above error requires installation :
sudo apt-get install iperf3 iperf netperf
2.1.2 compile
1). Create build directory
$ mkdir -p bcc/build
$ cd bcc/build
2). Compilation and installation
Steps are as follows :
cmake ..
make
sudo make install
cmake -DPYTHON_CMD=python3 ..
pushd src/python/
make
sudo make install
popd
3). Problem solving during installation :
- cmake encounter libbpf update problem


- Run encountered BPF abnormal

The above problems need to be modified python edition

Steps are as follows :
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3 /usr/bin/python

After modification , Execution instruction :

2.2 NDK Cross compilation
3. Use
3.1 Linux Use
3.2 Android/QNX Use
边栏推荐
- What are striplines and microstrip lines? Reference planes and transmission lines
- Tree Basics
- Role of RESNET residual block
- Summary of C language programming knowledge points 01
- 2022-2028 current market situation and future development trend of thermopile Pyranometers in the world and China
- 9 r remove missing values
- [Monday commuter radio station] cron expression. It's enough to read this article
- unity package manager starting server stuck(Unity啟動卡在starting server,然後報錯)
- JMeter load test finds the maximum number of concurrent users (including step analysis)
- Deploy website traffic statistics background based on Tencent cloud lightweight application server and umami
猜你喜欢

29. location object

Why should I use iwarp, roce V2, nvme of and other protocols for 100g network transmission

Frequency domain filter

JMeter load test finds the maximum number of concurrent users (including step analysis)

Object storage of CEPH distributed storage

unity package manager starting server stuck(Unity啟動卡在starting server,然後報錯)

Using the flask framework to write the bezel

Solution to the problem of PHP strtotime obtaining natural monthly error

In idea, run the yarn command to show that the file cannot be loaded because running scripts is disabled on this system

第二部分 数据链路层
随机推荐
Rtd2171u, substitute for trd2171u, substitute for trd2171u, cs5261 C to hdmi4k_ 30Hz
On scale of canvas recttransform in ugui
7905 and TL431 negative voltage regulator circuit - regulator and floating circuit relative to the positive pole of the power supply
Usage methods and cases of PLSQL blocks, cursors, functions, stored procedures and triggers of Oracle Database
Modelarts second job
频域滤波器
模拟Oracle锁等待与手工解锁
What are striplines and microstrip lines? Reference planes and transmission lines
[index system] the latest modeling method of data warehouse index system
29. location對象
修改本地微信小程序的AppID
Object storage of CEPH distributed storage
Weekly 02 | pour être honnête, je suis un étudiant du MIT
A mechanics informed artistic neural network approach in data driven constructive modeling
Current situation and future development trend of tropical forage seed market in the world and China from 2022 to 2028
Product information | Poe network card family makes a collective appearance, the perfect partner of machine vision!
unity package manager starting server stuck(Unity啟動卡在starting server,然後報錯)
php pcntl_fork 创建多个子进程解析
Simple classification example of brain cell membrane equivalent neural network
Yintai department store and Taobao tmall jointly create a green fashion show to help "carbon neutrality"