<?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>sujet Tried to compile and run the dans Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181856#M7465</link>
    <description>&lt;P&gt;Tried to compile and run the source code (into &lt;A href="https://github.com/opcm/pcm/tree/master/pcm.so" style="font-size: 1em;"&gt;https://github.com/opcm/pcm/tree/master/pcm.so&lt;/A&gt;) that you suggested but I keep getting either a seg fault if I run without any arguments provided (run ./c_example.x) or the following error if any argument is provided:&lt;/P&gt;

&lt;P&gt;Event 'something' is not supported. See the list of supported events&lt;/P&gt;

&lt;P&gt;I probably cannot understand the switch statement block of code so an example would be very beneficial&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;/P&gt;

&lt;P&gt;Giannis&lt;/P&gt;</description>
    <pubDate>Sun, 17 Sep 2017 13:51:34 GMT</pubDate>
    <dc:creator>Giannis_G_</dc:creator>
    <dc:date>2017-09-17T13:51:34Z</dc:date>
    <item>
      <title>Intel PCM API in C</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181854#M7463</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I want to ask something simple yet important for me. Is there a C-language API to use instead of the C++ API that is provided for PCM?&lt;/P&gt;

&lt;P&gt;If not (which probably is the case), is there any way to make the C++ API provided work inside a C source file?&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Giannis&lt;/P&gt;

&lt;P&gt;P.S. Re-write the existed code in C++ and use the API provided is not a realistic option.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 10:09:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181854#M7463</guid>
      <dc:creator>Giannis_G_</dc:creator>
      <dc:date>2017-09-13T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Hi Giannis,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181855#M7464</link>
      <description>&lt;P&gt;Hi Giannis,&lt;/P&gt;

&lt;P&gt;you can look into&amp;nbsp;https://github.com/opcm/pcm/tree/master/pcm.so&lt;/P&gt;

&lt;P&gt;It provides an example that exports some of the APIs to C. Hopefully you can extend it with the calls you need.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:03:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181855#M7464</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2017-09-14T09:03:31Z</dc:date>
    </item>
    <item>
      <title>Tried to compile and run the</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181856#M7465</link>
      <description>&lt;P&gt;Tried to compile and run the source code (into &lt;A href="https://github.com/opcm/pcm/tree/master/pcm.so" style="font-size: 1em;"&gt;https://github.com/opcm/pcm/tree/master/pcm.so&lt;/A&gt;) that you suggested but I keep getting either a seg fault if I run without any arguments provided (run ./c_example.x) or the following error if any argument is provided:&lt;/P&gt;

&lt;P&gt;Event 'something' is not supported. See the list of supported events&lt;/P&gt;

&lt;P&gt;I probably cannot understand the switch statement block of code so an example would be very beneficial&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;/P&gt;

&lt;P&gt;Giannis&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 13:51:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181856#M7465</guid>
      <dc:creator>Giannis_G_</dc:creator>
      <dc:date>2017-09-17T13:51:34Z</dc:date>
    </item>
    <item>
      <title>Hi Giannis,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181857#M7466</link>
      <description>&lt;P&gt;Hi Giannis,&lt;/P&gt;

&lt;P&gt;Thanks for trying. The argument syntax for c_example.x is the same as pcm-core.x. You can use ./pmu-query.py to get some example for encoding CPU counter events. It's the same syntax as Linux perf.&lt;/P&gt;

&lt;P&gt;For example: ./c_example.x cpu/umask=0x01,event=0x48,name=L1D_PEND_MISS.PENDING/&lt;/P&gt;

&lt;P&gt;We will update documentation soon. Thanks for your feedback.&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 04:48:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181857#M7466</guid>
      <dc:creator>Patrick_L_Intel</dc:creator>
      <dc:date>2017-09-18T04:48:27Z</dc:date>
    </item>
    <item>
      <title>Hi again guys,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181858#M7467</link>
      <description>&lt;P&gt;Hi again guys,&lt;/P&gt;

&lt;P&gt;your answers so far have been proved to be very helpful, so here I am to receive some more guidelines.&lt;/P&gt;

&lt;P&gt;Straight to the point, I've extended the example in pcm/pcm.so directory in order to support cache function calls (L2/L3 hits, misses and ratios).&lt;/P&gt;

&lt;P&gt;I've also made the necessary adjustments in pcm/pcm-core.cpp to support that functionality.&lt;/P&gt;

&lt;P&gt;The problem is that the result is always 0 cache hits and misses.&lt;/P&gt;

&lt;P&gt;Any thoughts on that? What could be wrong?&lt;/P&gt;

&lt;P&gt;P.S. I hadn't been able to run pcm/pcm-memory.x (Access to Processor Counter Monitor has denied (no MSR or PCI CFG space access)), even though pcm/pcm.x and pcm/pcm-core.x run without any error.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:34:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181858#M7467</guid>
      <dc:creator>Giannis_G_</dc:creator>
      <dc:date>2017-10-10T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Quote:Giannis G. wrote:</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181859#M7468</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Giannis G. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi again guys,&lt;/P&gt;

&lt;P&gt;your answers so far have been proved to be very helpful, so here I am to receive some more guidelines.&lt;/P&gt;

&lt;P&gt;Straight to the point, I've extended the example in pcm/pcm.so directory in order to support cache function calls (L2/L3 hits, misses and ratios).&lt;/P&gt;

&lt;P&gt;I've also made the necessary adjustments in pcm/pcm-core.cpp to support that functionality.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The problem is that the result is always 0 cache hits and misses.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Any thoughts on that? What could be wrong?&lt;/P&gt;

&lt;P&gt;P.S. I hadn't been able to run pcm/pcm-memory.x (Access to Processor Counter Monitor has denied (no MSR or PCI CFG space access)), even though pcm/pcm.x and pcm/pcm-core.x run without any error.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Was this issue solved? I'm also getting 0 cache hits and misses.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 08:54:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181859#M7468</guid>
      <dc:creator>Vincent_H_1</dc:creator>
      <dc:date>2018-01-25T08:54:11Z</dc:date>
    </item>
    <item>
      <title>Dear Giannis and Friends,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181860#M7469</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Dear Giannis and Friends,&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Do you have any update on this topic. If I understand correctly &lt;STRONG&gt;c_example.c &lt;/STRONG&gt;compiled on Linux platform. I have tried to compile on Windows&amp;nbsp; using Visual studio 2017 and Clion using Mingw-w64 on both instance&amp;nbsp; getting error (something missing inside )&amp;nbsp; Header files.&lt;/P&gt;

&lt;P&gt;Please refer the attached screen shot. Any thoughts - very useful. I am struggling to get basic idea of this program. &lt;STRONG&gt;If it compiled correctly , can i use like perf (Linux) command on windows? &lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;

&lt;P&gt;With regards,c&lt;/P&gt;

&lt;P&gt;handra&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 08:11:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-API-in-C/m-p/1181860#M7469</guid>
      <dc:creator>Chandra_V_</dc:creator>
      <dc:date>2018-02-21T08:11:00Z</dc:date>
    </item>
  </channel>
</rss>

