error: no sample files found: pr…
来源:互联网 发布:淘宝用户接口 编辑:程序博客网 时间:2024/04/30 01:12
$opreport
opreporterror: No sample file found: try running opcontrol--dump
or specifya session containing sample files
$tree/var/lib/oprofile/samples/current/
/var/lib/oprofile/samples/current/
0directories, 0 files
确实是没抓到sample文件!
经过无数次的分析和判断,再加上goolge大神的帮助,找到问题的根源了:
$dmesg|grep oprofile
oprofile:using NMI timer interrupt.
#如果你的CPU不被oprofile认识,或者说认识有问题,oprofile就会进入timerinterrupt模式
#表现就是
$ophelp
Usingtimer interrupt.
$sudoopcontrol --setup -e CPU_CLK_UNHALTED:6000:0:0:1
You cannotspecify any performance counter events
becauseOProfile is in timer mode.
如果你看到上面的字,对不起你肯定抓不到数据的,解决方案是这样的:
在oprofile模块加载的时候强制使用timer=1.
$sudoopcontrol --deinit
Daemon notrunning
Unloadingoprofile module
$sudomodprobe oprofiletimer=1
$dmesg|grep oprofile|tail -n 1
oprofile:using timer interrupt.
如果你看到上面的字说明你成功了。
- error: no sample files found: pr…
- 警告: No configuration found for…
- configure: error: no acceptable …
- [ CSS ] filter:pr…
- No Launcher activity found!
- No configuration found for the s…
- svn: No worthy mechs found
- Kernel panic - no…
-  
- LDAP: error code …
- g++ error : decla…
- linux : error whi…
- Error page: / Err…
- ERROR 23 (HY000) …
- Error: ORA-1505…
- MSCSLD : Error in…
- Error 000464 : 无…
- linux ERROR 1045 …
- 海思Hi3516芯片简介
- Linux手动更新locate数据库命令
- Linux上yum安装OpenCV
- Error: counter 0 not available n…
- java占位符
- error: no sample files found: pr…
- VS2008 Ctrl+Shift+8(字母上面的…
- undefined reference to main,Ecl…
- Linux 命令执行结果同时输出至屏幕…
- 分治算法之大整数乘法--big mutiply
- wampserver You don't have permission to access / on this server. 解决 方法
- 【转】Linux中rename命令的用法
- 【转】ARM的CACHE原理
- 【c++】PAT (Advanced Level)1012. The Best Rank (25)*