<?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 Non-Architectural Performance Events don't have a CMSK specified in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136608#M6531</link>
    <description>&lt;P&gt;Hi, i'm checking non-architectural performance events in "Software Developer's manual" related to the Skylake architecture. Events that requires to set CMASK to value x have the comment "CMSKx", but 2 events have the comment "CMSK" without a x value specified. They're IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK&amp;nbsp; (event_num=9CH, umask=01H ) and UOPS_EXECUTED.STALL_CYCLES (event_num=B1H, umask=01H )&lt;/P&gt;

&lt;P&gt;Is it a mistake in the documentation or am i forgetting something?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 09:48:50 GMT</pubDate>
    <dc:creator>Matteo_Fusi</dc:creator>
    <dc:date>2017-06-28T09:48:50Z</dc:date>
    <item>
      <title>Non-Architectural Performance Events don't have a CMSK specified</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136608#M6531</link>
      <description>&lt;P&gt;Hi, i'm checking non-architectural performance events in "Software Developer's manual" related to the Skylake architecture. Events that requires to set CMASK to value x have the comment "CMSKx", but 2 events have the comment "CMSK" without a x value specified. They're IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK&amp;nbsp; (event_num=9CH, umask=01H ) and UOPS_EXECUTED.STALL_CYCLES (event_num=B1H, umask=01H )&lt;/P&gt;

&lt;P&gt;Is it a mistake in the documentation or am i forgetting something?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 09:48:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136608#M6531</guid>
      <dc:creator>Matteo_Fusi</dc:creator>
      <dc:date>2017-06-28T09:48:50Z</dc:date>
    </item>
    <item>
      <title>If I am reading the VTune</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136609#M6532</link>
      <description>&lt;P&gt;If I am reading the VTune configuration files correctly, the event IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK (Event 0xC9, Umask 0x01) sets the CMASK to 1 and sets the INV flag as well.&amp;nbsp;&amp;nbsp; The full register value used by VTune would be 0x01d3019c.&amp;nbsp; Note that this sets the interrupt on overflow bit (bit 20), which you may or may not want in your application.&lt;/P&gt;

&lt;P&gt;The other event UOPS_EXECUTED.STALL_CYCLES also sets CMASK to 1 and sets the INV bit.&amp;nbsp; This makes sense -- CMASK=1 says to increment if the base event increments one or more times (i.e., 1 or more uops executed), then INV switches this to only count when the base increment increments less than 1 time.&amp;nbsp; The full register value used by VTune would then be 0x01d301b1.&amp;nbsp; Again, this includes the interrupt on overflow bit, which you may or may not want.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:29:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136609#M6532</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2017-06-28T15:29:11Z</dc:date>
    </item>
    <item>
      <title>Quote:McCalpin, John wrote:</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136610#M6533</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;McCalpin, John wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;If I am reading the VTune configuration files correctly, the event IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK (Event 0xC9, Umask 0x01) sets the CMASK to 1 and sets the INV flag as well.&amp;nbsp;&amp;nbsp; The full register value used by VTune would be 0x01d3019c.&amp;nbsp; Note that this sets the interrupt on overflow bit (bit 20), which you may or may not want in your application.&lt;/P&gt;

&lt;P&gt;The other event UOPS_EXECUTED.STALL_CYCLES also sets CMASK to 1 and sets the INV bit.&amp;nbsp; This makes sense -- CMASK=1 says to increment if the base event increments one or more times (i.e., 1 or more uops executed), then INV switches this to only count when the base increment increments less than 1 time.&amp;nbsp; The full register value used by VTune would then be 0x01d301b1.&amp;nbsp; Again, this includes the interrupt on overflow bit, which you may or may not want.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thank you John, so SDM's authors forgot to add 1 after CMSK. Yuo can check it in the attachment.&lt;/P&gt;

&lt;P&gt;Is is possible to signal the mistake to someone?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136610#M6533</guid>
      <dc:creator>Matteo_Fusi</dc:creator>
      <dc:date>2017-06-29T07:44:00Z</dc:date>
    </item>
    <item>
      <title>It is not particularly easy</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136611#M6534</link>
      <description>&lt;P&gt;It is not particularly easy to find out who is currently responsible for the documentation of the performance counters.... :-(&lt;/P&gt;

&lt;P&gt;It looks like Intel is putting their most up-to-date documentation for the performance counters on the 01.org website:&amp;nbsp; &lt;A href="https://download.01.org/perfmon/" target="_blank"&gt;https://download.01.org/perfmon/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The Skylake material is in &lt;A href="https://download.01.org/perfmon/SKL/" target="_blank"&gt;https://download.01.org/perfmon/SKL/&lt;/A&gt; and the full set of core events is in &lt;A href="https://download.01.org/perfmon/SKL/skylake_core_v30.json" target="_blank"&gt;https://download.01.org/perfmon/SKL/skylake_core_v30.json&lt;/A&gt; and &lt;A href="https://download.01.org/perfmon/SKL/skylake_core_v30.tsv.&amp;nbsp;&amp;nbsp;&amp;nbsp;" target="_blank"&gt;https://download.01.org/perfmon/SKL/skylake_core_v30.tsv.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/A&gt;; The json file is a bit easier to read, and it clearly shows the CounterMask value as "1" for both the IDQ_UOPS_NOT_DELIVERED.CYCLES_FE_WAS_OK event and the UOPS_EXECUTED.STALL_CYCLES event.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 12:45:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136611#M6534</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2017-06-29T12:45:50Z</dc:date>
    </item>
    <item>
      <title>Thank you, The linked tables</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136612#M6535</link>
      <description>&lt;P&gt;Thank you, The linked tables are what i needed a couple of months ago. I made a CSV table of PMCs, but i had problems with the documentation.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:02:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Non-Architectural-Performance-Events-don-t-have-a-CMSK-specified/m-p/1136612#M6535</guid>
      <dc:creator>Matteo_Fusi</dc:creator>
      <dc:date>2017-06-29T16:02:12Z</dc:date>
    </item>
  </channel>
</rss>

