虚拟机下使用oprofile报错Failed to open profile device: Operation not permitted的解决

@ <a href="https://bugzilla.redhat.com/show_bug.cgi?id=582570">https://bugzilla.redhat.com/show_bug.cgi?id=582570</a>
just MARK
The performance counters are not available to profile in virtualized
environments. You might be able to use the timer mode within the
DomU.
If just measuring things within a domU, as root you could do the following to
use the timer mode:
opcontrol --deinit
rm -f /root/.oprofile/daemonrc
modprobe oprofile timer=1
opcontrol --reset
opcontrol --vmlinux=/usr/lib/debug/lib/modules/`uname -r`/vmlinux
--separate=library
opcontrol --start

你可能感兴趣的:(TO,profile,解决,failed,operation,open,device,not,permitted)