Re: Custom Interrupt Handler for NMI

From: Alexander Shishkin
Date: Tue Sep 18 2018 - 06:17:43 EST


Andy Shevchenko <andy.shevchenko@xxxxxxxxx> writes:

> On Wed, Sep 12, 2018 at 6:16 PM Jack Henschel <jack.henschel@xxxxxxxxxxx> wrote:
>>
>> Hi there,
>>
>> is it possible to register a custom interrupt handler for a NMI/PMI
>> Interrupt?
>
> I don't think so, though I'm not an expert in the area, so, I also
> might be interested to see the answer to this question.

Sure, register_nmi_handler().

>> In particular, I want to catch the Intel PT interrupt (generated by the
>> PMU and sent over the LAPIC) in a kernel module. Is such a thing possible?
>
> I'm not sure why do you need this, Cc'ed to PT driver author.

Thanks, Andy. I am indeed interested in all the different PT drivers out
there.

So far, I'm aware of the perf driver and an out of tree simple-pt. If
you end up with yet another one, do let me know.

Good luck,
--
Alex