免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2208 | 回复: 2
打印 上一主题 下一主题

[C++] oprofile 问题 急求高手解答 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-30 20:15 |只看该作者 |倒序浏览
本帖最后由 迷離 于 2010-03-30 20:18 编辑

CPU type "PIII"
用下面命令设置分析事件, 为什么没有结果呢?
opcontrol --setup --no-vmlinux --event=CPU_CLK_UNHALTED:10000::0:1

opreport  显示错误提示:No sample file found:try running opcontrol --dump(已使用该命令) or specify a session containing sample files.

下面是log

Nr. sample dumps: 3
Nr. samples total: 0
Nr. kernel samples: 0
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. samples lost due to sample file open failure: 0
Nr. incomplete code structs: 0
Nr. event lost due to buffer overflow: 0
Nr. samples without file mapping: 0
Nr. backtrace skipped due to no file mapping: 4294967295
Nr. samples without mm: 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295
Nr. samples lost cpu buffer overflow: 0
Nr. samples lost task exit: 4294967295
Nr. samples received: 0
Nr. backtrace aborted: 4294967295

多谢各位了,在线等

论坛徽章:
0
2 [报告]
发表于 2010-03-31 10:21 |只看该作者
附上你的操作步骤再来问问题,都不知道怎么回答你...
你start stop dump了么?

论坛徽章:
0
3 [报告]
发表于 2010-03-31 17:39 |只看该作者
本帖最后由 迷離 于 2010-03-31 17:50 编辑

操作如下:
opcontrol --init
opcontrol --setup --no-vmlinux --event=CPU_CLK_UNHALTED:10000::0:1

opcontrol --start
然后运行我的程序

opcontrol --dump
opcontrol --stop

opreport

就报没有sample了....
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP