I have dell desktop with Intel Core i7-4770 @ 3.4GHz CPU.
There, I have installed Ubuntu server 15.04. Afterwards I have install linux-tools-generic
and linux-tools-common
to install perf tools. However, when I run perf list
the hardware section is not there, not even "not supported". The only other thing is that I have done before is to install xen, and Ubuntu is currently running as Dom0. I am not sure if this can have any effect on my problem.
Here is what I get from command perf list
:
ubuntuuser@ubuntu:~/work/linux$ perf list
List of pre-defined events (to be used in -e):
cpu-clock [Software event]
task-clock [Software event]
page-faults OR faults [Software event]
context-switches OR cs [Software event]
cpu-migrations OR migrations [Software event]
minor-faults [Software event]
major-faults [Software event]
alignment-faults [Software event]
emulation-faults [Software event]
dummy [Software event]
power/energy-cores/ [Kernel PMU event]
power/energy-gpu/ [Kernel PMU event]
power/energy-pkg/ [Kernel PMU event]
power/energy-ram/ [Kernel PMU event]
rNNN [Raw hardware event descriptor]
cpu/t1=v1[,t2=v2,t3 ...]/modifier [Raw hardware event descriptor]
(see 'man perf-list' on how to encode it)
mem:<addr>[:access] [Hardware breakpoint]
[ Tracepoints not available: Permission denied ]
I would like to know what is my problem? Is it the CPU itself that doesn't have support for hardware events? Or is it kernel from repository that doesn't have hardware events enabled? If it just kernel, I guess I will just have to
sudo
? i.e.sudo perf list
? On my system the list is much much longer when I usesudo
.