<?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 How to properly use the PMC0 and PMC1 performance counters in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-properly-use-the-PMC0-and-PMC1-performance-counters/m-p/1082954#M5518</link>
    <description>&lt;P lang="en" len="7" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Hi all,&lt;/P&gt;

&lt;P len="211" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;I have a question regarding on how to use the PMC0 and PMC1 together with the APIC_LVTPC.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;I have developed 2 Linux kernel modules.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;First, reads PEBS and second, reads LBR.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;I use PMC0 and PMC1 to count the event.&lt;/FONT&gt;&lt;/P&gt;

&lt;P len="266" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;My problem is that if I load PEBS module and than LBR reading module than only the LBR module working properly.&amp;nbsp;&lt;/FONT&gt;&lt;SPAN len="136" style="box-sizing: border-box;"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;If I load first the LBR module than the PEBS module is not working properly.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;Somehow the second module is shadowing the first one.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P len="95" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;Is there something that I miss?&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;Can the APIC_LVTPC register used with only one event at a time?&lt;/FONT&gt;&lt;/P&gt;

&lt;P lang="en" len="66" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Please have a look at the code of PEBS module and LBR module here:&lt;/P&gt;

&lt;P lang="en" len="73" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;A href="https://github.com/plxplx/rop_detector/blob/master/pebs-lkm/simple-pebs.c" target="_blank"&gt;https://github.com/plxplx/rop_detector/blob/master/pebs-lkm/simple-pebs.c&lt;/A&gt;&lt;/P&gt;

&lt;P lang="en" len="71" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;A href="https://github.com/plxplx/rop_detector/blob/master/lbr-lkm/simple-lbr.c" target="_blank"&gt;https://github.com/plxplx/rop_detector/blob/master/lbr-lkm/simple-lbr.c&lt;/A&gt;&lt;/P&gt;

&lt;P lang="en" len="7" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Thanks,&lt;/P&gt;

&lt;P lang="en" len="4" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Paul&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2016 10:28:03 GMT</pubDate>
    <dc:creator>Paul_M_2</dc:creator>
    <dc:date>2016-04-11T10:28:03Z</dc:date>
    <item>
      <title>How to properly use the PMC0 and PMC1 performance counters</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-to-properly-use-the-PMC0-and-PMC1-performance-counters/m-p/1082954#M5518</link>
      <description>&lt;P lang="en" len="7" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Hi all,&lt;/P&gt;

&lt;P len="211" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;I have a question regarding on how to use the PMC0 and PMC1 together with the APIC_LVTPC.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;I have developed 2 Linux kernel modules.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;First, reads PEBS and second, reads LBR.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;I use PMC0 and PMC1 to count the event.&lt;/FONT&gt;&lt;/P&gt;

&lt;P len="266" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;My problem is that if I load PEBS module and than LBR reading module than only the LBR module working properly.&amp;nbsp;&lt;/FONT&gt;&lt;SPAN len="136" style="box-sizing: border-box;"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;If I load first the LBR module than the PEBS module is not working properly.&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;Somehow the second module is shadowing the first one.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P len="95" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;Is there something that I miss?&amp;nbsp;&lt;/FONT&gt;&lt;FONT lang="en" style="box-sizing: border-box;"&gt;Can the APIC_LVTPC register used with only one event at a time?&lt;/FONT&gt;&lt;/P&gt;

&lt;P lang="en" len="66" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Please have a look at the code of PEBS module and LBR module here:&lt;/P&gt;

&lt;P lang="en" len="73" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;A href="https://github.com/plxplx/rop_detector/blob/master/pebs-lkm/simple-pebs.c" target="_blank"&gt;https://github.com/plxplx/rop_detector/blob/master/pebs-lkm/simple-pebs.c&lt;/A&gt;&lt;/P&gt;

&lt;P lang="en" len="71" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;&lt;A href="https://github.com/plxplx/rop_detector/blob/master/lbr-lkm/simple-lbr.c" target="_blank"&gt;https://github.com/plxplx/rop_detector/blob/master/lbr-lkm/simple-lbr.c&lt;/A&gt;&lt;/P&gt;

&lt;P lang="en" len="7" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Thanks,&lt;/P&gt;

&lt;P lang="en" len="4" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 244, 244);"&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 10:28:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-to-properly-use-the-PMC0-and-PMC1-performance-counters/m-p/1082954#M5518</guid>
      <dc:creator>Paul_M_2</dc:creator>
      <dc:date>2016-04-11T10:28:03Z</dc:date>
    </item>
  </channel>
</rss>

