让oprofile在虚拟机里面跑起来
来源:互联网 发布:郑凯淘宝店叫什么 编辑:程序博客网 时间:2024/06/08 15:24
4.3. OProfile in timer interrupt mode
Note
This section applies to 2.6 kernels and above only.
In 2.6 kernels on CPUs without OProfile support for the hardware performance counters, the driver falls back to using the timer interrupt for profiling. Like the RTC mode in 2.4 kernels, this is not able to profile code that has interrupts disabled. Note that there are no configuration parameters for setting this, unlike the RTC and hardware performance counter setup.
You can force use of the timer interrupt by using the timer=1
module parameter (or oprofile.timer=1
on the boot command line if OProfile is built-in).
于是到/root/.oprofile/目录下面把配置文件备份:mv daemonrc daemonrc.bak
然后给内核模块传递参数:modprobe oprofile timer=1
用dmesg查看,有:[ 2215.047277] oprofile: using NMI interrupt.
[ 2215.047310] oprofile: using timer interrupt.
重新执行性能测试,终于有了结果。
mlgbd,已经不是第一次被网上一些帖子忽悠了。
root@playmud-virtual-machine:/code/cpp# opreport -l ./t
Overflow stats not available
warning: [vdso] (tgid:1993 range:0xdce000-0xdcf000) could not be found.
warning: [vdso] (tgid:2778 range:0x17d000-0x17e000) could not be found.
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
samples % image name symbol name
3 42.8571 [vdso] (tgid:1993 range:0xdce000-0xdcf000) [vdso] (tgid:1993 range:0xdce000-0xdcf000)
2 28.5714 [vdso] (tgid:2778 range:0x17d000-0x17e000) [vdso] (tgid:2778 range:0x17d000-0x17e000)
1 14.2857 t main
1 14.2857 t my_print
root@playmud-virtual-machine:/code/cpp# uname -a
Linux playmud-virtual-machine 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
- 让oprofile在虚拟机里面跑起来
- 如何让你的WinForm在IE里面跑起来
- 让Barebox在Tiny6410上跑起来
- 让python在hadoop上跑起来
- Palm SDK 在Firefox里面跑起来了
- HomeworldSDL终于在Linux虚拟机上跑起来了
- 让自己跑起来
- 让l4ka跑起来
- 让Python程序在Android手机上跑起来
- 让Python程序在Android手机上跑起来
- 让Python程序在Android手机上跑起来
- vmware Linux虚拟机配置实录--让虚拟机真实起来
- Kaldi在虚拟机里面安装
- 让nvidia跑起来了
- Project Perfect让Swift在服务器端跑起来-让Perfect更Rails (五)
- 让对象在Unity3D中动起来
- 让birt在ie10中跑起来
- 让咱们的.Net程序在64位系统上跑起来
- SQL Server性能计数器(转自:http://www.cnblogs.com/netflu/archive/2010/09/22/1832993.html)
- DataGridView单元格弹出窗体返回查询的值
- hdu 1827
- 基于CC2430/31的Zigbee实践(2)--zmain函数流程 及分频问题等
- Fedora Linux实用配置方法总结[转]
- 让oprofile在虚拟机里面跑起来
- [Sliverlight]写于Silverlight整装待发之际(七):Silverlight VS Flash/Flex
- ActiveX控件漏洞学习
- C++咬文嚼字-'0 or NULL' - [语言探索]
- 使用SQL查询重复列记录
- 学PMP
- Oracle 异常
- Debian使用amule
- 准备开设个人网站,学习php了