[英]Oprofile in Vmware Fusion
我正在尝试使用oprofile作为虚拟机内部的分析工具。 但是,如果我这样做
operf
我收到以下错误:
Your kernel's Performance Events Subsystem does not support your processor type.
Please use the opcontrol command instead of operf.
因此,我尝试了opcontrol。 我以root身份执行以下操作
opcontrol --deinit
rm /root/.oprofile/daemonrc
opcontrol --init
opcontrol --start
返回以下错误
Cannot find event CPU_CLK_UNHALTED
Using default event: CPU_CLK_UNHALTED:100000:0:1:1
Cannot find event CPU_CLK_UNHALTED
根据错误跟踪器( http://sourceforge.net/p/oprofile/bugs/268/ )的介绍,我所做的就是已经使oprofile在VMware环境中工作的解决方法。
我的操作系统是
Linux version 3.19.0-25-generic (buildd@lgw01-20) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015
它安装在虚拟机中。 虚拟机软件是VMware 7.1.1。 主机操作系统是Mac OS X 10.10
我遇到了同样的问题,并在虚拟机上运行的Linux上通过oprofile在http://blogs.epfl.ch/category/3239找到了解决方案
默认情况下,通过调用加载oprofile内核模块时
opcontrol --init
计时器支持未启用。
解决方案是卸载内核模块
opcontrol --deinit
并手动加载它,并传递一个启用计时器支持的选项
modprobe oprofile timer=1
完成之后
opcontrol --start-daemon
为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.