分类: LINUX
2010-11-23 22:23:38
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,已经不是第一次被网上一些帖子忽悠了。
|
chinaunix网友2010-11-24 13:18:06
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com