<?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 Jithin, in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028932#M4213</link>
    <description>&lt;P&gt;Jithin,&lt;/P&gt;

&lt;P&gt;did you have a look at the &lt;A href="https://software.intel.com/en-us/forums/topic/519908"&gt;pmu-tools&lt;/A&gt; that Andi has put on &lt;A href="https://github.com/andikleen/pmu-tools"&gt;github&lt;/A&gt;? It contains the code to &lt;A href="https://github.com/andikleen/pmu-tools/blob/d30e7faabb16730175b84bed1ad83d7830a8ba86/pebs-grabber/pebs-grabber.c"&gt;access raw PEBS information&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Thomas&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2015 09:16:03 GMT</pubDate>
    <dc:creator>Thomas_W_Intel</dc:creator>
    <dc:date>2015-03-02T09:16:03Z</dc:date>
    <item>
      <title>Using PEBS facility</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028931#M4212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've been going through the documentation for the PEBS facility as described in the Intel software-developer manual vol 3b section 18.7.1.1&lt;/P&gt;

&lt;P&gt;It is mentioned that, in order to use PEBS, software needs to initialize the&amp;nbsp;&lt;SPAN style="font-family: Verdana; font-size: 9pt; line-height: 1.5;"&gt;DS_BUFFER_MANAGEMENT_AREA data structure in memory (in non-paged pool) and then store the beginning linear address of this data structure in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana; font-size: 9pt; line-height: 1.5;"&gt;IA32_DS_AREA register.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Is there a sample piece of code that illustrates how this data structure initialization and setting of&amp;nbsp;&lt;SPAN style="font-family: Verdana; font-size: 12px; line-height: 18px;"&gt;IA32_DS_AREA register needs to be done?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Verdana; font-size: 12px; line-height: 18px;"&gt;I'm a bit confused about using PEBS and haven't been able to find any useful examples of how PEBS is utilized either.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;It would be quite helpful if I could refer to a piece of sample code that configures and utilizes PEBS?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm working on an IvyBridge machine.&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Jithin&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2015 04:26:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028931#M4212</guid>
      <dc:creator>Jithin_Parayil_T_</dc:creator>
      <dc:date>2015-03-01T04:26:22Z</dc:date>
    </item>
    <item>
      <title>Jithin,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028932#M4213</link>
      <description>&lt;P&gt;Jithin,&lt;/P&gt;

&lt;P&gt;did you have a look at the &lt;A href="https://software.intel.com/en-us/forums/topic/519908"&gt;pmu-tools&lt;/A&gt; that Andi has put on &lt;A href="https://github.com/andikleen/pmu-tools"&gt;github&lt;/A&gt;? It contains the code to &lt;A href="https://github.com/andikleen/pmu-tools/blob/d30e7faabb16730175b84bed1ad83d7830a8ba86/pebs-grabber/pebs-grabber.c"&gt;access raw PEBS information&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 09:16:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028932#M4213</guid>
      <dc:creator>Thomas_W_Intel</dc:creator>
      <dc:date>2015-03-02T09:16:03Z</dc:date>
    </item>
    <item>
      <title>Thanks a lot Thomas!</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028933#M4214</link>
      <description>&lt;P&gt;Thanks a lot Thomas!&lt;/P&gt;

&lt;P&gt;I went through the pebs-grabber module in the pmu-tools repo and it cleared a lot of doubts.&lt;/P&gt;

&lt;P&gt;However, I ran into an issue while trying to use the module.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Following are the commands I used to build the code and use it (I followed these commands from the comments mentioned in pebs-grabber.c):&lt;/P&gt;

&lt;P&gt;1.&amp;nbsp;make [KDIR=/lib/modules/3.13.0-46-generic/build]&lt;/P&gt;

&lt;P&gt;2.&amp;nbsp;insmod pebs-grabber.ko&lt;/P&gt;

&lt;P&gt;3.&amp;nbsp;perf record -e cycles:p,pebs_v1,pebs\_v2 ../../a.out&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The third command hits an error:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="p1"&gt;&lt;STRONG&gt;invalid or unsupported event: 'cycles:p,pebs_v1,pebs_v2'&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="p1"&gt;&lt;STRONG&gt;Run 'perf list' for a list of valid events&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="p1"&gt;Have I missed something?&lt;/P&gt;

&lt;P class="p1"&gt;Thanks,&lt;/P&gt;

&lt;P class="p1"&gt;Jithin&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 04:51:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028933#M4214</guid>
      <dc:creator>Jithin_Parayil_T_</dc:creator>
      <dc:date>2015-03-05T04:51:40Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028934#M4215</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am also trying to use this toolset.&lt;/P&gt;

&lt;P&gt;I can get the simple-pebs driver compiled and installed.&lt;/P&gt;

&lt;P&gt;when I try to follow the above instructions to get the pebs-grabber module installed, it fails.&lt;/P&gt;

&lt;P&gt;dmesg says:&lt;/P&gt;

&lt;P&gt;pebs-grabber: PEBS version 2&lt;/P&gt;

&lt;P&gt;pebs-grabber: Cannot register kprobe: -2&lt;/P&gt;

&lt;P&gt;this is with kernel linux-4.2.0-19&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 23:10:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-PEBS-facility/m-p/1028934#M4215</guid>
      <dc:creator>Mike_U_</dc:creator>
      <dc:date>2015-12-10T23:10:35Z</dc:date>
    </item>
  </channel>
</rss>

