<?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 Registering a handler for a PMI in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Registering-a-handler-for-a-PMI/m-p/1086725#M5571</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;This is the first thread i've published here.&lt;/P&gt;

&lt;P&gt;I want to get an interrupt whenever a Performance Counter Monitor is overflowed on windows. i've set everything, and even checked that everything works (meaning, the PMC is counting my event, and an interrupt is being raised - i know this since i've checked that the 16-th bit is on in the relevent LVT).&lt;/P&gt;

&lt;P&gt;The problem is, i don't know how to register the handler. i'm using&amp;nbsp;HalSetSystemInformation, with the first parameter as HalProfileSourceInterruptHandler. i tried 2 things to send as the handler.&lt;/P&gt;

&lt;P&gt;1. Sending my handler's address directly to the function - it results in a BSOD saying INTERRUPT_EXCEPTION_NOT_HANDLED. (do i need to do anything special in my handler? does the function has to be of a specific signature? do i have to register this interrupt handler?)&lt;/P&gt;

&lt;P&gt;2. Tried to create an MCA_DRIVER_INFO object to send, as stated by MSDN about&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;HalSetSystemInformation, but the only function being called is the exception callback. does it make any sense?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.512px;"&gt;I've searched the internet for days, and found nothing, not even decadent code samples.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.512px;"&gt;would appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.512px;"&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2015 16:38:15 GMT</pubDate>
    <dc:creator>Maor_H_</dc:creator>
    <dc:date>2015-11-27T16:38:15Z</dc:date>
    <item>
      <title>Registering a handler for a PMI</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Registering-a-handler-for-a-PMI/m-p/1086725#M5571</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;This is the first thread i've published here.&lt;/P&gt;

&lt;P&gt;I want to get an interrupt whenever a Performance Counter Monitor is overflowed on windows. i've set everything, and even checked that everything works (meaning, the PMC is counting my event, and an interrupt is being raised - i know this since i've checked that the 16-th bit is on in the relevent LVT).&lt;/P&gt;

&lt;P&gt;The problem is, i don't know how to register the handler. i'm using&amp;nbsp;HalSetSystemInformation, with the first parameter as HalProfileSourceInterruptHandler. i tried 2 things to send as the handler.&lt;/P&gt;

&lt;P&gt;1. Sending my handler's address directly to the function - it results in a BSOD saying INTERRUPT_EXCEPTION_NOT_HANDLED. (do i need to do anything special in my handler? does the function has to be of a specific signature? do i have to register this interrupt handler?)&lt;/P&gt;

&lt;P&gt;2. Tried to create an MCA_DRIVER_INFO object to send, as stated by MSDN about&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;HalSetSystemInformation, but the only function being called is the exception callback. does it make any sense?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.512px;"&gt;I've searched the internet for days, and found nothing, not even decadent code samples.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.512px;"&gt;would appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.512px;"&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 16:38:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Registering-a-handler-for-a-PMI/m-p/1086725#M5571</guid>
      <dc:creator>Maor_H_</dc:creator>
      <dc:date>2015-11-27T16:38:15Z</dc:date>
    </item>
  </channel>
</rss>

