linux Ubuntu16.04 oprofile1.1.0 编译笔记
2017-05-17 16:30
387 查看
内核支持:
.config 文件选项
CONFIG_PROFILING=y
CONFIG_OPROFILE=y
重新编译,替换内核,重启系统
下载源代码:
wget http://prdownloads.sourceforge.net/oprofile/oprofile-1.1.0.tar.gz
解压:
tar -zxcf oprofile-1.1.0.tar.gz
编译:
预备工作:
sudo
apt-get install binutils-dev libiberty-dev libpopt-dev -y
1. ./configure
但是出现下面警告,
Warning: The user account 'oprofile:oprofile' does not exist on the system.
To profile JITed code, this special user account must exist.
Please ask your system administrator to add the following user and group:
user name : 'oprofile'
group name: 'oprofile'
The 'oprofile' group must be the default group for the 'oprofile' user.
这个错误不能忽略,如果这个不解决,后面执行也会出错.
意思是需要添加指定用户,原因不想翻译,
sudo groupadd oprofile
sudo useradd -g oprofile oprofile
2. make
3. sudo make install
4. 测试程序
sudo operf ./sandiego_osg_es2
sandiego_osg_es2 是我自己测试的程序,用自己的需要测试的替换.
Your kernel's Performance Events Subsystem does not support your processor type.
fuck...
If you receive the message
when attempting to use operf,
install OProfile 0.9.9 and try profiling with opcontrol to see if your processor type may
be supported by OProfile's legacy mode.
原来是我的CPU太信了,不支持,~~~~呜呜~~~~
.config 文件选项
CONFIG_PROFILING=y
CONFIG_OPROFILE=y
重新编译,替换内核,重启系统
下载源代码:
wget http://prdownloads.sourceforge.net/oprofile/oprofile-1.1.0.tar.gz
解压:
tar -zxcf oprofile-1.1.0.tar.gz
编译:
预备工作:
sudo
apt-get install binutils-dev libiberty-dev libpopt-dev -y
1. ./configure
但是出现下面警告,
Warning: The user account 'oprofile:oprofile' does not exist on the system.
To profile JITed code, this special user account must exist.
Please ask your system administrator to add the following user and group:
user name : 'oprofile'
group name: 'oprofile'
The 'oprofile' group must be the default group for the 'oprofile' user.
这个错误不能忽略,如果这个不解决,后面执行也会出错.
意思是需要添加指定用户,原因不想翻译,
sudo groupadd oprofile
sudo useradd -g oprofile oprofile
2. make
3. sudo make install
4. 测试程序
sudo operf ./sandiego_osg_es2
sandiego_osg_es2 是我自己测试的程序,用自己的需要测试的替换.
Your kernel's Performance Events Subsystem does not support your processor type.
fuck...
Note
Some older processor models are not supported by the underlying perf_events kernel and, thus, are not supported by operf.If you receive the message
Your kernel's Performance Events Subsystem does not support your processor type |
install OProfile 0.9.9 and try profiling with opcontrol to see if your processor type may
be supported by OProfile's legacy mode.
原来是我的CPU太信了,不支持,~~~~呜呜~~~~
相关文章推荐
- 对<< ubuntu 12.04编译安装linux-3.6.10内核笔记>>的修正
- Ubuntu 16.04 安装arm-linux-gcc交叉编译
- Ubuntu16.04交叉编译树莓派Linux-Kernel并打RT-Patch
- Ubuntu 16.04 安装 arm-linux-gcc 交叉编译工具
- 64位Ubuntu 16.04搭建嵌入式交叉编译环境arm-linux-gcc过程图解
- ok6410[001] Ubuntu 16.04[64bit]嵌入式交叉编译环境arm-linux-gcc搭建过程图解
- Ubuntu16.04安装配置嵌入式交叉编译工具链arm-linux-gcc
- Ubuntu 16.04(64bit)嵌入式交叉编译环境搭建arm-linux-gcc使用
- zynq学习笔记一:搭建linux交叉编译环境(ubuntu 17.04)
- linux-ubuntu16.04 为树莓派3B 交叉编译qt5.9 心得
- ubuntu16.04编译android6.0 make: *** [out/host/linux-x86/obj32/lib/libartd.so] Error 1错误
- ubuntu 12.04编译安装linux-3.6.10内核笔记
- Linux(UBuntu16.04)下编译mysql 5.1.73时报错: error: No curses/termcap library found
- 64位Ubuntu 16.04搭建嵌入式交叉编译环境arm-linux-gcc过程图解
- Ubuntu 16.04[64bit]嵌入式交叉编译环境arm-linux-gcc搭建过程图解
- Linux-Ubuntu16.04重新编译vim8.0支持Lua,Python3和YouCompleteMe
- ubuntu16.04 64bit安装arm-none-linux-gnueabi交叉编译工具链
- Linux(Ubuntu16.04)自学笔记,资源整理
- 64位Ubuntu 16.04 编译Linux-2.6.21.1错误排除
- ubuntu 16.04 64bits 交叉编译openssl到arm-linux