- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Marcus,
From VTune engineers we have the following output on the question you raised:
1. DEBUGCTL should have TR, BTS, and BTINT (bits 6, 7, 8) set.
2. Default Windows PMI vector (0xFE) can be hooked using this function:
HalSetSystemInformation(HalProfileSourceInterruptHandler, sizeof(void*), &handler);
3. In case interrupts stop arriving after the first PMI, you should manually unmask APIC’s PMI LVT entry in your PMI handler by writing 0xFE to IA32_X2APIC_LVT_PMI MSR (0x834) or through APIC memory, depending on your CPU version.
Hope that helps,
Thansk & Regards, Dmitry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Very helpful indeed.
But i have a problem with handler in:
HalSetSystemInformation(HalProfileSourceInterruptHandler, sizeof(void*), &handler);
since according to MSDN, handler should be a struct of type MCA_DRIVER_INFO. but when i do it, only the exception callback is called, and not my handler.
if i pass the handler directly (not via MCA_DRIVER_INFO), than i get INTERRUPT_EXCEPTION_NOT_HANDLED.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oh i see...
would be great to see how to make it work. up until now i only get BSODs :)
i wonder what am i missing with this handler...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page