虚拟机下使用oprofile报错Failed to open profile device: Operation not permitted的解决
@ https://bugzilla.redhat.com/show_bug.cgi?id=582570just MARKThe performance counters are not available to profile in virtualizedenvironments. 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
页:
[1]