mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Shishkin <alexander.shishkin@linux.intel.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>, jack.henschel@mailbox.org
Cc: Platform Driver <platform-driver-x86@vger.kernel.org>,
	Darren Hart <dvhart@infradead.org>,
	linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl,
	andi.kleen@intel.com, alexander.shishkin@linux.intel.com
Subject: Re: Custom Interrupt Handler for NMI
Date: Tue, 18 Sep 2018 13:17:35 +0300	[thread overview]
Message-ID: <87h8in85z4.fsf@ashishki-desk.ger.corp.intel.com> (raw)
In-Reply-To: <CAHp75VdLYrz4u=hentebG5wpmOEHEjbbTm1yd0HgrcPQ60V+rg@mail.gmail.com>

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Wed, Sep 12, 2018 at 6:16 PM Jack Henschel <jack.henschel@mailbox.org> 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

           reply	other threads:[~2018-09-18 10:17 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAHp75VdLYrz4u=hentebG5wpmOEHEjbbTm1yd0HgrcPQ60V+rg@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8in85z4.fsf@ashishki-desk.ger.corp.intel.com \
    --to=alexander.shishkin@linux.intel.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=andi.kleen@intel.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=dvhart@infradead.org \
    --cc=jack.henschel@mailbox.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®