<?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 Re: How to get CXL PMU event sources in Linux(perf)? in Intel® Xeon® Processor and Server Products</title>
    <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624367#M25044</link>
    <description>&lt;P&gt;十分感谢您的回复！&lt;/P&gt;&lt;P&gt;我还有几个问题想向您请教一下。&lt;/P&gt;&lt;P&gt;1. perf list | grep cxl 输出的事件中有一部分Kernel PMU events, 请问这部分events和uncore_cxl.json中的寄存器有关系吗？&lt;BR /&gt;&lt;A href="https://www.kernel.org/doc/html/latest/admin-guide/perf/cxl.html#cxl-performance-monitoring-unit-cpmu" target="_blank"&gt;https://www.kernel.org/doc/html/latest/admin-guide/perf/cxl.html#cxl-performance-monitoring-unit-cpmu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_2-1724140241006.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58082iDE9BE2007C5FF908/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_2-1724140241006.png" alt="pudding_art_2-1724140241006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. 我在pcm的源码中找到了两部分和CXL相关的事件统计，一部分在您说的pcm/src/cpucounter.cpp中，如下图所示：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_3-1724140381025.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58083i8F7CC5E63327797F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_3-1724140381025.png" alt="pudding_art_3-1724140381025.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;另一部分在pcm/src/pcm-memory.cpp中，如下图所示：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_4-1724140430603.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58084i91DF9EDE92D19F4E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_4-1724140430603.png" alt="pudding_art_4-1724140430603.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;请问我在使用pcm-raw指令的时候在cxlcm/config=xxx后面输入编号的时候是输入UNC_PMON_CTL_EVENT+UNC_PMON_CTL_UMASK的组合即可吗？比如&lt;SPAN&gt;`pcm-raw -e cxlcm/config=0210`对应&lt;/SPAN&gt;&lt;SPAN&gt;CXLCM_TxC_PACK_BUF_INSERTS.MEM_DATA。输出结果如下：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_5-1724140625237.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58085i282D535A77E15C48/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_5-1724140625237.png" alt="pudding_art_5-1724140625237.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;这个输出结果正确吗？应该如何解读这个结果呢？&lt;/P&gt;&lt;P&gt;pcm-memory.cpp这里的&lt;SPAN&gt;UNC_PMON_CTL_UMASK_EXT是UMASK的扩展？我在uncore-cache.json找到了这里pcm-memory.cpp中的这些event, 最终的UMASK=UNC_PMON_CTL_UMASK_EXT+UNC_PMON_CTL_UMASK，这样理解对吗？但是Event Code看起来对不上。&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_0-1724141061475.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58086i136483F12211B611/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_0-1724141061475.png" alt="pudding_art_0-1724141061475.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;谢谢！十分期待您的回复！&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 08:15:10 GMT</pubDate>
    <dc:creator>pudding_art</dc:creator>
    <dc:date>2024-08-20T08:15:10Z</dc:date>
    <item>
      <title>How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617048#M24844</link>
      <description>&lt;P&gt;Hi, I'm trying to profiling performance of cxl&amp;nbsp; type3 devices using CXL PMON mentioned in Xeon manual, but i can't see any cxl related event sources under /sys/bus/event_sources, so how to get performance data in perf?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Linux kernel is 6.5.0, ubuntu 22.04.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 15:23:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617048#M24844</guid>
      <dc:creator>Shunyu</dc:creator>
      <dc:date>2024-07-22T15:23:28Z</dc:date>
    </item>
    <item>
      <title>Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617656#M24845</link>
      <description>&lt;P&gt;Hello Shunyu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for posting in the community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To ensure you receive the most specialized assistance, we have a dedicated forum that addresses these specific concerns. Therefore, I will be moving this discussion to our Server Forum. This will allow our knowledgeable community and experts to provide you with timely and accurate solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Norman S.&lt;/P&gt;&lt;P&gt;Intel Customer Support Engineer&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jul 2024 05:57:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617656#M24845</guid>
      <dc:creator>NormanS_Intel</dc:creator>
      <dc:date>2024-07-24T05:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617683#M24849</link>
      <description>&lt;P&gt;Update: I've tried these raw events in&amp;nbsp;&lt;A href="https://github.com/torvalds/linux/blob/66ebbdfdeb093e097399b1883390079cd4c3022b/tools/perf/pmu-events/arch/x86/sapphirerapids/uncore-cxl.json" target="_self"&gt;https://github.com/torvalds/linux/blob/66ebbdfdeb093e097399b1883390079cd4c3022b/tools/perf/pmu-events/arch/x86/sapphirerapids/uncore-cxl.json&lt;/A&gt;&amp;nbsp;, but the result i got is really weird, it looks like these are totally unrelated events.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 08:23:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617683#M24849</guid>
      <dc:creator>Shunyu</dc:creator>
      <dc:date>2024-07-24T08:23:27Z</dc:date>
    </item>
    <item>
      <title>Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617725#M24854</link>
      <description>&lt;P&gt;Hi Shunyu,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Greetings for the day!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regarding your query, we recommend consulting your Linux team or IT support regarding the Compute Express Link (CXL) Performance Monitoring Unit (CPMU) and the Linux Kernel documentation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Should you have any further questions or need assistance with other issues, please feel free to reach out.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for choosing Intel products and services.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Manoranjan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jul 2024 10:53:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1617725#M24854</guid>
      <dc:creator>ManoranjanDas</dc:creator>
      <dc:date>2024-07-24T10:53:09Z</dc:date>
    </item>
    <item>
      <title>Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1618487#M24872</link>
      <description>&lt;P&gt;&lt;SPAN style="background-color: var(--slds-g-color-neutral-base-100, var(--lwc-colorBackgroundInput,rgb(255, 255, 255))); color: var(--slds-g-color-neutral-base-30, var(--lwc-colorTextWeak,rgb(68, 68, 68)));"&gt;Hello Shunyu,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: var(--slds-g-color-neutral-base-100, var(--lwc-colorBackgroundInput,rgb(255, 255, 255))); color: var(--slds-g-color-neutral-base-30, var(--lwc-colorTextWeak,rgb(68, 68, 68))); font-size: var(--lwc-fontSize3,0.8125rem); font-family: var(--lwc-fontFamily,-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol');"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Greetings for the day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this message finds you well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are following up to find out if you were able to find the information we provided. Please reply to confirm, so we can continue helping on a resolution. Looking forward to receiving your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoranjan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2024 18:33:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1618487#M24872</guid>
      <dc:creator>ManoranjanDas</dc:creator>
      <dc:date>2024-07-26T18:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1618591#M24873</link>
      <description>&lt;P&gt;A bunch of useless answers.&lt;LI-EMOJI id="lia_grinning-face-with-sweat" title=":grinning_face_with_sweat:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 08:57:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1618591#M24873</guid>
      <dc:creator>Shunyu</dc:creator>
      <dc:date>2024-07-27T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1618602#M24874</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello Shunyu,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Greetings of the day!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Apologies for the inconvenience caused.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could you please confirm which Xeon manual you are referring to? If possible, could you also provide the link to the manual and specify the processor model?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Manoranjan&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 27 Jul 2024 10:18:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1618602#M24874</guid>
      <dc:creator>ManoranjanDas</dc:creator>
      <dc:date>2024-07-27T10:18:36Z</dc:date>
    </item>
    <item>
      <title>Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1619398#M24904</link>
      <description>&lt;P&gt;Hello Shunyu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings for the day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this message finds you well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are following up to find out if you were able to find the information we provided. Please reply to confirm, so we can continue helping on a resolution. Looking forward to receiving your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoranjan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2024 14:46:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1619398#M24904</guid>
      <dc:creator>ManoranjanDas</dc:creator>
      <dc:date>2024-07-30T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1621156#M24954</link>
      <description>&lt;P&gt;Hello Shunyu,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Greeting for the Day!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are currently awaiting your response regarding the case. If you have any queries or require further assistance, please feel free to respond on the community post. We are more than happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for choosing Intel products and services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoranjan Das.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2024 12:50:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1621156#M24954</guid>
      <dc:creator>ManoranjanDas</dc:creator>
      <dc:date>2024-08-06T12:50:27Z</dc:date>
    </item>
    <item>
      <title>Re:How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1622118#M24982</link>
      <description>&lt;P&gt;Hello Shunyu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings for the day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like to inform you that we are closing this request as no response has been received from our previous follow-ups. Please don't hesitate to ask any further questions in the future. Feel free to start a new conversation, as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for choosing Intel products and services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoranjan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Aug 2024 12:18:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1622118#M24982</guid>
      <dc:creator>ManoranjanDas</dc:creator>
      <dc:date>2024-08-09T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624178#M25039</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_0-1724078030872.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58052iF57AF53EFBD3809F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_0-1724078030872.png" alt="pudding_art_0-1724078030872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.kernel.org/doc/html/latest/admin-guide/perf/cxl.html#cxl-performance-monitoring-unit-cpmu" target="_blank"&gt;https://www.kernel.org/doc/html/latest/admin-guide/perf/cxl.html#cxl-performance-monitoring-unit-cpmu&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;Maybe help.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 14:34:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624178#M25039</guid>
      <dc:creator>pudding_art</dc:creator>
      <dc:date>2024-08-19T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624211#M25040</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am seeking guidance on utilizing perf to monitor events as defined in the uncore_cxl.json file located within &lt;STRONG&gt;tools/perf/pmu-events/arch/x86/sapphirerapids/uncore_cxl.json&lt;/STRONG&gt;. Despite the presence of these events in the JSON file, they do not appear when I execute the perf list command. Consequently, I attempted to employ this command below to monitor these events, only to encounter an issue where certain count units are labeled as "unsupported" in the output.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; perf stat -e $EVENT_NAME:$UMASK my_command

hwt@cxl2-2288H-V7:~/workspace/mlc_v3.11a/Linux$ perf stat -I 500 -e 0x02:0x10 ./test_seq_write_bw.sh
#           time             counts unit events
     0.500505514    &amp;lt;not supported&amp;gt;      0x02:0x10                                                             
     1.001040375    &amp;lt;not supported&amp;gt;      0x02:0x10                                                             
     1.501550639    &amp;lt;not supported&amp;gt;      0x02:0x10                                                             
     2.002069833    &amp;lt;not supported&amp;gt;      0x02:0x10                                                             
     2.003776122    &amp;lt;not supported&amp;gt;      0x02:0x10&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_0-1724085644802.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58060i0B7EF10472A9EBAF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_0-1724085644802.png" alt="pudding_art_0-1724085644802.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide any insights or solutions to address this problem? How do you specifically use perf for monitoring the events mentioned in the uncore_cxl.json file?&lt;/P&gt;&lt;P&gt;Thank you for your time and assistance.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 16:41:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624211#M25040</guid>
      <dc:creator>pudding_art</dc:creator>
      <dc:date>2024-08-19T16:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624297#M25043</link>
      <description>&lt;P&gt;事实上perf确实测不到，但是可以通过intel-pcm中的pcm-raw访问，比如 `pcm-raw -e cxlcm/config=4098` ， 这个编号可以看 `pcm/src/cpucounter.cpp` 中的 `PCM::programCXLCM()` 也即第10180行，具体寄存器在&lt;A href="https://www.intel.com/content/www/us/en/content-details/639667/4th-gen-intel-xeon-scalable-processor-xcc-codename-sapphire-rapids-uncore-performance-monitoring-guide.html" target="_self"&gt;XCC (Codename Sapphire Rapids) Uncore Performance&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW，这些数值基本只代表带宽，事实上pcm测得的cxl带宽就是其中两个寄存器换算的，没有太大意义&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 03:09:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624297#M25043</guid>
      <dc:creator>Shunyu</dc:creator>
      <dc:date>2024-08-20T03:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624367#M25044</link>
      <description>&lt;P&gt;十分感谢您的回复！&lt;/P&gt;&lt;P&gt;我还有几个问题想向您请教一下。&lt;/P&gt;&lt;P&gt;1. perf list | grep cxl 输出的事件中有一部分Kernel PMU events, 请问这部分events和uncore_cxl.json中的寄存器有关系吗？&lt;BR /&gt;&lt;A href="https://www.kernel.org/doc/html/latest/admin-guide/perf/cxl.html#cxl-performance-monitoring-unit-cpmu" target="_blank"&gt;https://www.kernel.org/doc/html/latest/admin-guide/perf/cxl.html#cxl-performance-monitoring-unit-cpmu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_2-1724140241006.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58082iDE9BE2007C5FF908/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_2-1724140241006.png" alt="pudding_art_2-1724140241006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. 我在pcm的源码中找到了两部分和CXL相关的事件统计，一部分在您说的pcm/src/cpucounter.cpp中，如下图所示：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_3-1724140381025.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58083i8F7CC5E63327797F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_3-1724140381025.png" alt="pudding_art_3-1724140381025.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;另一部分在pcm/src/pcm-memory.cpp中，如下图所示：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_4-1724140430603.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58084i91DF9EDE92D19F4E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_4-1724140430603.png" alt="pudding_art_4-1724140430603.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;请问我在使用pcm-raw指令的时候在cxlcm/config=xxx后面输入编号的时候是输入UNC_PMON_CTL_EVENT+UNC_PMON_CTL_UMASK的组合即可吗？比如&lt;SPAN&gt;`pcm-raw -e cxlcm/config=0210`对应&lt;/SPAN&gt;&lt;SPAN&gt;CXLCM_TxC_PACK_BUF_INSERTS.MEM_DATA。输出结果如下：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_5-1724140625237.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58085i282D535A77E15C48/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_5-1724140625237.png" alt="pudding_art_5-1724140625237.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;这个输出结果正确吗？应该如何解读这个结果呢？&lt;/P&gt;&lt;P&gt;pcm-memory.cpp这里的&lt;SPAN&gt;UNC_PMON_CTL_UMASK_EXT是UMASK的扩展？我在uncore-cache.json找到了这里pcm-memory.cpp中的这些event, 最终的UMASK=UNC_PMON_CTL_UMASK_EXT+UNC_PMON_CTL_UMASK，这样理解对吗？但是Event Code看起来对不上。&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_0-1724141061475.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58086i136483F12211B611/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_0-1724141061475.png" alt="pudding_art_0-1724141061475.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;谢谢！十分期待您的回复！&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:15:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624367#M25044</guid>
      <dc:creator>pudding_art</dc:creator>
      <dc:date>2024-08-20T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624370#M25045</link>
      <description>&lt;P&gt;1. 没有关系。你列的是CXL Revision 3.0 Specification中定义的PMU，首先FPGA不支持，其次CPU目前不支持，我提到的是Intel在自家CPU(甚至自家FPGA)上定制的PMU&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. cpucounter.cpp 中的就是我提到的文档中的pmu，而 pcm-memory.cpp 中你搜索到的是被分类在UNC_CHA下面的，这些事件用perf list就可以查询到&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. 你的用法是错误的，你只要看一下这两个宏定义就会发现&lt;SPAN&gt;UNC_PMON_CTL_UMASK其实是左移8位，因此应该是0x1002，但是！pcm-raw工具的这个参数是十进制，因此应该是cxlcm/config=4098&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:28:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624370#M25045</guid>
      <dc:creator>Shunyu</dc:creator>
      <dc:date>2024-08-20T08:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624382#M25046</link>
      <description>&lt;P&gt;谢谢！&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;不过实在不好意思，这里的左移八位的意思我没太搞懂？是最终cxlcm/config的值是&lt;SPAN&gt;UNC_PMON_CTL_UMASK左移八位再加上&lt;/SPAN&gt;&lt;SPAN&gt;UNC_PMON_CTL_EVENT，也就是&amp;lt;umask&amp;gt;&amp;lt;eventcode&amp;gt;的格式？&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;如果按照uncore-cxl.json中给的数据使用pcm-raw的话，是用cxlcm/config的值是x1041再转换成10进制吗？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_0-1724144507173.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58088i5190CFFF4849DC9D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_0-1724144507173.png" alt="pudding_art_0-1724144507173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 09:08:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624382#M25046</guid>
      <dc:creator>pudding_art</dc:creator>
      <dc:date>2024-08-20T09:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624384#M25047</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pudding_art_0-1724145315665.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/58089iCE23806FC830358D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pudding_art_0-1724145315665.png" alt="pudding_art_0-1724145315665.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;而且在我使用perf stat去监控被分类在UNC_CHA下面的事件时，就会报错Bad event name. &lt;LI-EMOJI id="lia_face-with-tears-of-joy" title=":face_with_tears_of_joy:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 09:16:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624384#M25047</guid>
      <dc:creator>pudding_art</dc:creator>
      <dc:date>2024-08-20T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624385#M25048</link>
      <description>&lt;P&gt;是的，umask_ext &amp;lt;&amp;lt; 32 + umask &amp;lt;&amp;lt; 8 + event ，如果用左图的Rx就是0x1041(4161)&lt;/P&gt;&lt;P&gt;在`pcm-raw -e aaa -e bbb -e ccc -e ddd` 中 `aaa`会出现在CXLCMEvents的第0位，`bbb`出现在数组的第1位，以此类推。需要注意这些寄存器允许出现的位置(Counters)在手册上是有限制的。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;另外，这些个寄存器除了带宽之外没有什么用&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 09:17:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624385#M25048</guid>
      <dc:creator>Shunyu</dc:creator>
      <dc:date>2024-08-20T09:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624386#M25049</link>
      <description>&lt;P&gt;perf的event请使用全大写。。&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 09:21:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624386#M25049</guid>
      <dc:creator>Shunyu</dc:creator>
      <dc:date>2024-08-20T09:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CXL PMU event sources in Linux(perf)?</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624388#M25050</link>
      <description>&lt;P&gt;谢谢！谢谢！太感谢了！毕设要用到这个看带宽，终于解决了！🥹&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 09:24:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/How-to-get-CXL-PMU-event-sources-in-Linux-perf/m-p/1624388#M25050</guid>
      <dc:creator>pudding_art</dc:creator>
      <dc:date>2024-08-20T09:24:07Z</dc:date>
    </item>
  </channel>
</rss>

