<?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 There is a technical detail: in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109903#M6029</link>
    <description>&lt;P&gt;There is a technical detail: this event (0x00) is measured on the fixed PMU counter (unfortunately pcm-core does not recognize it yet). As a workaround you manually add printing getRefCycles value (similar to getCycles) in&amp;nbsp;print_custom_stats function.&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;getRefCycles returns&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;CPU_CLK_UNHALTED.REF_TSC event count.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Roman&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 12:37:35 GMT</pubDate>
    <dc:creator>Roman_D_Intel</dc:creator>
    <dc:date>2016-10-13T12:37:35Z</dc:date>
    <item>
      <title>pcm-core.x error: Access to Intel(r) Performance Counter Monitor has denied (Unknown error).</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109900#M6026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I installed PCM 2.11 on an Ubuntu system with kernel 4.8.0. All PCM commands work fine except pcm-core.x. It complains that Access to Intel PCM had denied with "Unknown error". The message from pcm-core.x is listed below. I don't understand why all other PCM commands works fine except this one. Could someone help answer why and how to resolve the problem?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Harry&lt;/P&gt;

&lt;P&gt;====================&lt;/P&gt;

&lt;P&gt;root@perf104:/home/tools/IntelPerformanceCounterMonitor-V2.11# ./pcm-core.x&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Intel(r) Performance Counter Monitor: Core Monitoring Utility&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Copyright (c) 2009-2016 Intel Corporation&lt;/P&gt;

&lt;P&gt;Number of physical cores: 88&lt;BR /&gt;
	Number of logical cores: 88&lt;BR /&gt;
	Number of online logical cores: 88&lt;BR /&gt;
	Threads (logical cores) per physical core: 1&lt;BR /&gt;
	Num sockets: 4&lt;BR /&gt;
	Physical cores per socket: 22&lt;BR /&gt;
	Core PMU (perfmon) version: 3&lt;BR /&gt;
	Number of core PMU generic (programmable) counters: 8&lt;BR /&gt;
	Width of generic (programmable) counters: 48 bits&lt;BR /&gt;
	Number of core PMU fixed counters: 3&lt;BR /&gt;
	Width of fixed counters: 48 bits&lt;BR /&gt;
	Nominal core frequency: 2200000000 Hz&lt;BR /&gt;
	Package thermal spec power: 150 Watt; Package minimum power: 62 Watt; Package maximum power: 330 Watt;&amp;nbsp;&lt;BR /&gt;
	Socket 0: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	Socket 1: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	Socket 2: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	Socket 3: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	Trying to use Linux perf events...&lt;BR /&gt;
	Linux Perf: Error on programming generic event #0 error: Invalid argument&lt;BR /&gt;
	Access to Intel(r) Performance Counter Monitor has denied (Unknown error).&lt;BR /&gt;
	Cleaning up&lt;BR /&gt;
	&amp;nbsp;Freeing up all RMIDs&lt;BR /&gt;
	root@perf104:/home/tools/IntelPerformanceCounterMonitor-V2.11#&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 00:56:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109900#M6026</guid>
      <dc:creator>Harry_L_</dc:creator>
      <dc:date>2016-10-12T00:56:07Z</dc:date>
    </item>
    <item>
      <title>This is an error from perf</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109901#M6027</link>
      <description>&lt;P&gt;This is an error from perf API of Linux kernel.&lt;/P&gt;

&lt;P&gt;As a workaround you can disable using perf API in PCM Makefile. Comment out the line with "&lt;SPAN style="font-size: 12px;"&gt;CXXFLAGS += -DPCM_USE_PERF&lt;/SPAN&gt;" and recompile.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:55:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109901#M6027</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2016-10-12T14:55:37Z</dc:date>
    </item>
    <item>
      <title>Thanks Roman, the workaround</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109902#M6028</link>
      <description>&lt;P&gt;Thanks Roman, the workaround works well.&lt;/P&gt;

&lt;P&gt;I have a follow up question. With the same configuration, I am trying to collect CPU_CLK_UNHALTED.REF_TSC event with following command line, but all output values are 0. I tried another event,&amp;nbsp;cpu/umask=0x01,event=0x3C,name=CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY,any=1/, and it works well. Did I miss anything here?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Harry&lt;/P&gt;

&lt;P&gt;root@perf104:/home/tools/IntelPerformanceCounterMonitor-V2.11# ./pcm-core.x &amp;nbsp;-e cpu/umask=0x03,event=0x00,name=CPU_CLK_UNHALTED.REF_TSC/ -e cpu/umask=0x01,event=0x3C,name=CPU_CLK_THREAD_UNHALTED.REF_XCLK/&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Intel(r) Performance Counter Monitor: Core Monitoring Utility&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Copyright (c) 2009-2016 Intel Corporation&lt;/P&gt;

&lt;P&gt;Number of physical cores: 88&lt;BR /&gt;
	Number of logical cores: 88&lt;BR /&gt;
	Number of online logical cores: 88&lt;BR /&gt;
	Threads (logical cores) per physical core: 1&lt;BR /&gt;
	Num sockets: 4&lt;BR /&gt;
	Physical cores per socket: 22&lt;BR /&gt;
	Core PMU (perfmon) version: 3&lt;BR /&gt;
	Number of core PMU generic (programmable) counters: 8&lt;BR /&gt;
	Width of generic (programmable) counters: 48 bits&lt;BR /&gt;
	Number of core PMU fixed counters: 3&lt;BR /&gt;
	Width of fixed counters: 48 bits&lt;BR /&gt;
	Nominal core frequency: 2200000000 Hz&lt;BR /&gt;
	Package thermal spec power: 150 Watt; Package minimum power: 62 Watt; Package maximum power: 330 Watt;&amp;nbsp;&lt;BR /&gt;
	Socket 0: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	Socket 1: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	Socket 2: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	Socket 3: 2 memory controllers detected with total number of 8 channels. 3 QPI ports detected.&lt;BR /&gt;
	1: cpu&lt;BR /&gt;
	2: umask=0x03,event=0x00,name=CPU_CLK_UNHALTED.REF_TSC&lt;BR /&gt;
	1: cpu&lt;BR /&gt;
	2: umask=0x01,event=0x3C,name=CPU_CLK_THREAD_UNHALTED.REF_XCLK&lt;BR /&gt;
	Socket 0&lt;BR /&gt;
	Max QPI link 0 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 1 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 2 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Socket 1&lt;BR /&gt;
	Max QPI link 0 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 1 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 2 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Socket 2&lt;BR /&gt;
	Max QPI link 0 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 1 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 2 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Socket 3&lt;BR /&gt;
	Max QPI link 0 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 1 speed: 19.2 GBytes/second (9.6 GT/second)&lt;BR /&gt;
	Max QPI link 2 speed: 19.2 GBytes/second (9.6 GT/second)&lt;/P&gt;

&lt;P&gt;Detected Intel(R) Xeon(R) CPU E7-8880 v4 @ 2.20GHz "Intel(r) microarchitecture codename Broadwell-EP"&lt;BR /&gt;
	Update every 1.0 seconds&lt;BR /&gt;
	Time elapsed: 1004 ms&lt;BR /&gt;
	txn_rate: 1&lt;BR /&gt;
	Event0: CPU_CLK_UNHALTED.REF_TSC (raw 0x430300)&lt;BR /&gt;
	Event1: CPU_CLK_THREAD_UNHALTED.REF_XCLK (raw 0x43013c)&lt;/P&gt;

&lt;P&gt;Core | IPC | Instructions &amp;nbsp;| &amp;nbsp;Cycles &amp;nbsp;| Event0 &amp;nbsp;| Event1 &amp;nbsp;| Event2 &amp;nbsp;| Event3&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;0 &amp;nbsp; 2.31 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1207 M &amp;nbsp; &amp;nbsp; &amp;nbsp;523 M &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;26 M &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;1 &amp;nbsp; 0.31 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 223 K &amp;nbsp; &amp;nbsp; &amp;nbsp;727 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;60 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;2 &amp;nbsp; 0.44 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 142 K &amp;nbsp; &amp;nbsp; &amp;nbsp;320 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;26 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;3 &amp;nbsp; 0.42 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100 K &amp;nbsp; &amp;nbsp; &amp;nbsp;242 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;4 &amp;nbsp; 0.36 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 173 K &amp;nbsp; &amp;nbsp; &amp;nbsp;476 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;39 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;5 &amp;nbsp; 0.40 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 156 K &amp;nbsp; &amp;nbsp; &amp;nbsp;395 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;6 &amp;nbsp; 0.52 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 102 K &amp;nbsp; &amp;nbsp; &amp;nbsp;198 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 K &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 18:12:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109902#M6028</guid>
      <dc:creator>Harry_L_</dc:creator>
      <dc:date>2016-10-12T18:12:23Z</dc:date>
    </item>
    <item>
      <title>There is a technical detail:</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109903#M6029</link>
      <description>&lt;P&gt;There is a technical detail: this event (0x00) is measured on the fixed PMU counter (unfortunately pcm-core does not recognize it yet). As a workaround you manually add printing getRefCycles value (similar to getCycles) in&amp;nbsp;print_custom_stats function.&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;getRefCycles returns&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;CPU_CLK_UNHALTED.REF_TSC event count.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Roman&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:37:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/pcm-core-x-error-Access-to-Intel-r-Performance-Counter-Monitor/m-p/1109903#M6029</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2016-10-13T12:37:35Z</dc:date>
    </item>
  </channel>
</rss>

