手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux内核添加对OProfile 的支持

[日期:2011-07-26] 来源:Linux社区  作者:fangyuanseu [字体:大 中 小]

工欲善其事,必先利其器,oprofile是分析性能的利器。废话少说,直接上solution:

首先确定你的内核是否添加了对oprofile 的支持,方法是看内核的启动信息,如果有如下两行的,说明你的内核支持oprofile:

oprofile: hardware counters not available

oprofile: using timer interrupt.

如果没有就需要在内核中添加对oprofile的支持:

1 在/arch/unicore(按照你的实际情况)/ 下建立oprofile 文件夹 ,在oprofile中是makefile 将/driver/oprofile中的文件编译

2 在/arch/unicore/kconfig 中将 config STACKTRACE_SUPPORT default 选为 y

3 make menuconfig 添加oprofile选项 make menuconfig general step 中 profiling support 和 oprofile system profiling

这样就好了。

linux
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* 匿名 发表于 2013/5/19 21:25:30
在oprofile中是makefile 将/driver/oprofile中的文件编译 这句 什么意思