ubutun 14.04 编译 systemtap

来源:互联网 发布:广电网络网格化方案 编辑:程序博客网 时间:2024/05/01 22:16

cd /tmp

mkdir systemtap
cd systemtap/
git clone git://sourceware.org/git/systemtap.git
git clone https://git.fedorahosted.org/git/elfutils.git
cd elfutils

autoheader

aclocal -I m4
autoconf
automake -a -c

cd ../systemtap/

./configure --with-elfutils=/tmp/systemtap/elfutils

会出现configure: Running systemtap uninstalled, entirely out of the build tree,    

                    configure: is not supported.

apt-get install flex bison

  make
  make install

编译成功后执行  stap -ve 'probebegin { log("hello world") exit() }'

如果能打印出helloworld则认为基本功能OK。

0 0
原创粉丝点击