当前位置:网站首页>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
边栏推荐
- Docker installing MySQL
- Oracle case: ora-00600: internal error code, arguments: [4187]
- JMeter load test finds the maximum number of concurrent users (including step analysis)
- The world's first public chain integrating commercial and financial fields
- Systematically study the recommendation system from a global perspective to improve competitiveness in actual combat (Chapter 8)
- 28. JS implementation mechanism
- Solution to unlimited restart of desktop and file explorer
- Final examination of theory and practice of socialism with Chinese characteristics 1
- What are striplines and microstrip lines? Reference planes and transmission lines
- 2022-2028 global and Chinese thermopile detector Market Status and future development trend
猜你喜欢

Teach you how to grab ZigBee packets through cc2531 and parse encrypted ZigBee packets

unity package manager starting server stuck(Unity启动卡在starting server,然后报错)

输入值“18-20000hz”错误,设置信息不完整,请选择单位

【数据可视化】使用 Apache Superset 可视化 ClickHouse 数据

php pcntl_ Fork create multiple child process resolution

First modelarts training

moderlarts第二次作业

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

Première formation sur les largeurs modernes

Solution to unlimited restart of desktop and file explorer
随机推荐
Chrome V8 source code 48 The secret of weak type addition,'+'source code analysis
vectorDrawable使用报错
Deploy website traffic statistics background based on Tencent cloud lightweight application server and umami
Redis fourth session - redis high performance principle (multiplexing) and high availability analysis (backup, master-slave)
moderlarts第二次作业
ubantu1804 两个opencv版本共存
What is the meaning of holding shares of financial products?
Application analysis of Poe image acquisition card in machine vision industrial computer
9 r remove missing values
[data visualization] Apache superset 1.2.0 tutorial (III) - detailed explanation of chart functions
Final examination of Dialectics of nature 1
Current situation and future development trend of global and Chinese cogeneration system market from 2022 to 2028
应用场景:现场直播节目制作NDI技术中PoE网卡的广泛应用
Date of SQL optimization_ Format() function
The difference between VaR and let_ The difference between let and VaR
2022-2028 global and Chinese thermopile detector Market Status and future development trend
On scale of canvas recttransform in ugui
MySQL installation free configuration tutorial under Windows mysql-5.6.51-winx64 Zip version
How to add text on the border in bar code software
2022-2028 current situation and future development trend of fuel cell market for cogeneration application in the world and China