首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

Linux性能分析工具oprofile安装和使用

1、wget http://rpm5.org/files/popt/popt-1.16.tar.gz ./configure&&make & sudo make install 2、wget http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz ./configure&&make & sudo make install 3、wget http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz ./configure --with-sysroots make clean make sudo make install 4、 cd libiberty //进入该目录 ./configure //完成之后会有个Makefile文件产生 vi Makefile //编辑该文件,找到并修改该行为: CFLAGS = -g -O2 -fPPIC 保存 make clean make gcc -shared *.o -o libiberty.so //生成.so文件,把该文件拷到/usr/lib中 sudo cp libiberty.so /usr/lib/libiberty.so 5、 cd bfd ./configure --enable-shared make clean make sudo make install 6、export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib 7、 http://sourceforge.net/projects/oprofile/files/oprofile/ ./configure&&make & sudo make install

02
领券