MIPS平台目标机安装Oprofile时出现error
来源:互联网 发布:linux硬盘信息 编辑:程序博客网 时间:2024/05/20 21:20
在Debian下安装Oprofile
重要:应该使linux内核选项支持
在 .config 文件中设置CONFIG_PROFILING=y和CONFIG_OPROFILE=y。
重新编译,烧写。使用apt-get update && apt-get install oprofile oprofile-gui
或手工安装直接从网上下载oprofile-0.9.8。
Oprofile默认需要这些库的支持: 由GNUmaintain的libbfd.so及libiberty.so
编译和安装最新的biutils工具集。binutils-2.22.tar.gz.
在 /usr/local/lib/ 目录下生成静态库 libbfd.a和libiberty.a。
但oprofile需要动态库,所以需要修改oprofile/libopangent/Makefile文件使之支持静态库。
修改如下:
BFD_LIBS = -lbfd -liberty -ldl -lz => BFD_LIBS = -static-libbfd -static-libiberty -ldl -lz
其他的可修改
如果linux kernel 版本是2.6.35+,应该会出现以下错误:
operf_utils.cpp:735: error: ‘PERF_RECORD_MISC_GUEST_KERNEL’ was not declared in this scope
operf_utils.cpp:738: error: ‘PERF_RECORD_MISC_GUEST_USER’ was not declared in this scope
参考文件/usr/include/linux/perf_event.h
把 ‘PERF_RECORD_MISC_GUEST_KERNEL’ 改成‘PERF_RECORD_MISC_KERNEL’,
‘PERF_RECORD_MISC_GUEST_USER’ 改成 ‘PERF_RECORD_MISC_USER’ .
即可成功编译。
另外在X86平台安装oprofile-0.9.9遇到的错误:
../include/sstream:37: error: using typedef-name âstd::stringbufâ after âclassâ(http://marc.info/?l=oprofile-list&m=121841939525369)
这是因为之前已经自动安装了oprofile-0.9.7版本,所以只需删掉以前的oprofile版本,安装重复以上步骤即可
- MIPS平台目标机安装Oprofile时出现error
- MIPS 平台出现的 Bus Error
- porting oprofile on mips board
- 安装oprofile
- 安装oprofile
- Ubuntu安装mips平台交叉编译环境
- 基于loongson(mips)平台的台式机系统安装
- ubuntu 上安装 oprofile
- OProfile安装和使用
- oprofile 安装指南
- oprofile安装和使用
- 安装使用oprofile
- eclipse安装时出现Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
- 解决FATAL: Could not open 'kernel/arch/mips/oprofile/oprofile.ko': No such file or directory
- idea编译工程时出现Error:java: 无效的目标发行版: 1.8
- idea编译工程时出现Error:java: 无效的目标发行版: 1.8
- idea编译工程时出现Error:java: 无效的目标发行版: 1.8
- windows平台theano在安装gcc后出现error: '::hypot' has not been declared
- 文件部分-----(4)二进制文件读写操作
- 论文阅读笔记 - Omega: flexible,scalable schedulers for large compute clusters
- Speex编/解码API的使用
- GridBagLayout布局基本用法
- 【备忘】Java的Applet调用第三方jar包,web调用问题解决方案
- MIPS平台目标机安装Oprofile时出现error
- 【备忘】运行jar应用程序引用其他jar包的四种方法
- 讯飞语音合成实例1
- VC编程之标题栏和菜单
- 数据库加密
- 哈尔小波变换
- 转载之再转DDK与WDK
- 预编译头文件stdafx.h
- 10大web开发框架