<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Linux Perf: Error on programming generic event #0 error: Invalid argument in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Linux-Perf-Error-on-programming-generic-event-0-error-Invalid/m-p/1086978#M5572</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;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&lt;/P&gt;

&lt;P&gt;When i try to run like this,&lt;/P&gt;

&lt;P&gt;&amp;gt;sudo modprobe msr&lt;BR /&gt;
	&amp;gt;./pcm.x&amp;nbsp;&amp;nbsp; (&amp;gt;sudo ./pcm.x)&lt;/P&gt;

&lt;P&gt;Number of physical cores: 4&lt;BR /&gt;
	Number of logical cores: 8&lt;BR /&gt;
	...&lt;BR /&gt;
	...&lt;BR /&gt;
	Nominal core frequency: 3400000000 Hz&lt;BR /&gt;
	Package thermal spec power: 77 Watt; Package minimum power: 60 Watt; Package maximum power: 0 Watt;&lt;BR /&gt;
	&lt;STRONG&gt;Trying to use Linux perf events...&lt;BR /&gt;
	Linux Perf: Error on programming generic event #0 error: Invalid argument&lt;/STRONG&gt;&lt;BR /&gt;
	Access to Intel(r) Performance Counter Monitor has denied (Unknown error).&lt;BR /&gt;
	Cleaning up&lt;/P&gt;

&lt;P&gt;------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;What can I do to resolve that error?&lt;BR /&gt;
	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.&lt;BR /&gt;
	The only link I got is : &lt;A href="https://software.intel.com/en-us/articles/intel-performance-counter-monitor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-performance-counter-monitor&lt;/A&gt;&lt;BR /&gt;
	I know these are very basic things, but I wanted to lean seriously . Any suggestions how can i get hold of usage of&amp;nbsp; PCM also greatly helpful.&lt;BR /&gt;
	Thanks in advance for your help. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 04:24:28 GMT</pubDate>
    <dc:creator>anthony_b_</dc:creator>
    <dc:date>2016-02-25T04:24:28Z</dc:date>
    <item>
      <title>Linux Perf: Error on programming generic event #0 error: Invalid argument</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Linux-Perf-Error-on-programming-generic-event-0-error-Invalid/m-p/1086978#M5572</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;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&lt;/P&gt;

&lt;P&gt;When i try to run like this,&lt;/P&gt;

&lt;P&gt;&amp;gt;sudo modprobe msr&lt;BR /&gt;
	&amp;gt;./pcm.x&amp;nbsp;&amp;nbsp; (&amp;gt;sudo ./pcm.x)&lt;/P&gt;

&lt;P&gt;Number of physical cores: 4&lt;BR /&gt;
	Number of logical cores: 8&lt;BR /&gt;
	...&lt;BR /&gt;
	...&lt;BR /&gt;
	Nominal core frequency: 3400000000 Hz&lt;BR /&gt;
	Package thermal spec power: 77 Watt; Package minimum power: 60 Watt; Package maximum power: 0 Watt;&lt;BR /&gt;
	&lt;STRONG&gt;Trying to use Linux perf events...&lt;BR /&gt;
	Linux Perf: Error on programming generic event #0 error: Invalid argument&lt;/STRONG&gt;&lt;BR /&gt;
	Access to Intel(r) Performance Counter Monitor has denied (Unknown error).&lt;BR /&gt;
	Cleaning up&lt;/P&gt;

&lt;P&gt;------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;What can I do to resolve that error?&lt;BR /&gt;
	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.&lt;BR /&gt;
	The only link I got is : &lt;A href="https://software.intel.com/en-us/articles/intel-performance-counter-monitor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-performance-counter-monitor&lt;/A&gt;&lt;BR /&gt;
	I know these are very basic things, but I wanted to lean seriously . Any suggestions how can i get hold of usage of&amp;nbsp; PCM also greatly helpful.&lt;BR /&gt;
	Thanks in advance for your help. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 04:24:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Linux-Perf-Error-on-programming-generic-event-0-error-Invalid/m-p/1086978#M5572</guid>
      <dc:creator>anthony_b_</dc:creator>
      <dc:date>2016-02-25T04:24:28Z</dc:date>
    </item>
  </channel>
</rss>

