ubuntu17.04 調試系統工具bcc,systamtap安裝

 發行版 ubuntu17.04python

    cat lsb-releaselinux

  DISTRIB_ID=Ubuntugit

  DISTRIB_RELEASE=17.04 github

  DISTRIB_CODENAME=zestyubuntu

  DISTRIB_DESCRIPTION="Ubuntu 17.04"flex

 

查看自帶的LINUX內核版本ui

   uname -a lua

  Linux server1 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linspa

 

內核符號下載:server

      http://ddebs.ubuntu.com/pool/main/l/linux/linux-image-4.10.0-19-generic-dbgsym_4.10.0-19.21_amd64.ddeb

      sudo dpkg -i linux-image-4.10.0-19-generic-dbgsym_4.10.0-19.21_amd64.ddeb   

 

 

systemtap安裝:
    sudo apt-get install systemtap
    sudo apt-get install systemtap-sdt-dev

 

bcc 安裝:

 

sudo apt-get -y install bison build-essential cmake flex git libedit-dev  libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev

sudo apt-get -y install luajit luajit-5.1-dev

 

git clone https://github.com/iovisor/bcc.git

mkdir bcc/build; cd bcc/build

cmake .. -DCMAKE_INSTALL_PREFIX=/usr

make

sudo make install

 

sudo apt-get -y install netperf iperf

 

OK

相關文章
相關標籤/搜索