<?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 Using PIN in the program in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-PIN-in-the-program/m-p/1358419#M8008</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to use Intel PIN tools inside a program at some specific points. Consider a program has the following sections:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;read_input();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;do();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;show_results();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use the basic command like&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;pin -t instcount0.so -- ./program&lt;/P&gt;
&lt;P&gt;I see the total instructions. However, I want to start counting the instructions for do() function only. So I want to inject some helper PIN functions like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;read_input();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;start_pin&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;do();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;stop_pin&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;show_results();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do that? I didn't see simple explanation about that.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 10:14:55 GMT</pubDate>
    <dc:creator>Mahmoodn</dc:creator>
    <dc:date>2022-02-08T10:14:55Z</dc:date>
    <item>
      <title>Using PIN in the program</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-PIN-in-the-program/m-p/1358419#M8008</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to use Intel PIN tools inside a program at some specific points. Consider a program has the following sections:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;read_input();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;do();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;show_results();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use the basic command like&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;pin -t instcount0.so -- ./program&lt;/P&gt;
&lt;P&gt;I see the total instructions. However, I want to start counting the instructions for do() function only. So I want to inject some helper PIN functions like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;read_input();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;start_pin&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;do();&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;stop_pin&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;show_results();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do that? I didn't see simple explanation about that.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 10:14:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-PIN-in-the-program/m-p/1358419#M8008</guid>
      <dc:creator>Mahmoodn</dc:creator>
      <dc:date>2022-02-08T10:14:55Z</dc:date>
    </item>
  </channel>
</rss>

