Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
14 Views

Linux Perf: Error on programming generic event #0 error: Invalid argument

Hi,

I am very new to this area of performance measuring. I would like to measure events like number of loads, hits, misses per core/thread etc. I downloaded PCM 2.10 on my machine Intel i7, ubuntu 14.04

When i try to run like this,

>sudo modprobe msr
>./pcm.x   (>sudo ./pcm.x)

Number of physical cores: 4
Number of logical cores: 8
...
...
Nominal core frequency: 3400000000 Hz
Package thermal spec power: 77 Watt; Package minimum power: 60 Watt; Package maximum power: 0 Watt;
Trying to use Linux perf events...
Linux Perf: Error on programming generic event #0 error: Invalid argument

Access to Intel(r) Performance Counter Monitor has denied (Unknown error).
Cleaning up

------------------------------------------------------------------------------------------------

What can I do to resolve that error?
Secondly can you provide any references to how use PCM for my requirement (to measure events in my program)? Where can I get the information about the commands to use , how to run and etc.
The only link I got is : https://software.intel.com/en-us/articles/intel-performance-counter-monitor
I know these are very basic things, but I wanted to lean seriously . Any suggestions how can i get hold of usage of  PCM also greatly helpful.
Thanks in advance for your help.  

 

0 Kudos
0 Replies