lihu129c 发表于 2019-1-27 15:43:18

虚拟机下使用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 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


页: [1]
查看完整版本: 虚拟机下使用oprofile报错Failed to open profile device: Operation not permitted的解决