From: Maynard J. <may...@us...> - 2013-05-02 14:02:27
|
On 04/30/2013 09:03 AM, 张伟 wrote: > > > > 在 2013-04-30 17:22:24,"Robert Richter" <rr...@ke...> 写道: >>On 30.04.13 10:10:07, 张伟 wrote: >>> I want to use oprofile to get cache misses. However, I meet the problem in the >>> email. >>> >>> On xen platform, only opcontrol --list-events only shows >>> Using timer interrupt. >> > >>Oprofile can not be used in a Xen guest, hw counters are not available >>there. >> > > However, I run the command opcontrol --list-events in domain0, not domainU. Why only Using timer interrupt in domain0. > > On another server, also run the xen 4.1.2 and ubuntu 12.04, the kernel is > > root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# uname -a > Linux nimbnode2 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux > > I run the following command > > root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --version > opcontrol: oprofile 0.9.5 compiled on Apr 22 2013 09:10:43 > root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --init > root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --no-vmlinux > root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --start > Error: counter 0 not available nmi_watchdog using this resource ? Try: > opcontrol --deinit > echo 0 > /proc/sys/kernel/nmi_watchdog > root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# cat /proc/sys/kernel/nmi_watchdog > 0 Please run the commands Robert suggested: # echo p > /proc/sysrq-trigger # dmesg | tail -n 30 And then paste the dmesg output in your reply. -Maynard > > I have set 0 to the file /proc/sys/kernel/nmi_watchdog and /proc/sys/kernel/watchdog. Still the same problem. > [snip[ |