From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45DFCECE567 for ; Tue, 18 Sep 2018 10:17:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 09CF720C0E for ; Tue, 18 Sep 2018 10:17:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 09CF720C0E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729508AbeIRPtf (ORCPT ); Tue, 18 Sep 2018 11:49:35 -0400 Received: from mga01.intel.com ([192.55.52.88]:64013 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbeIRPtf (ORCPT ); Tue, 18 Sep 2018 11:49:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2018 03:17:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,389,1531810800"; d="scan'208";a="70909191" Received: from um.fi.intel.com (HELO localhost) ([10.237.72.212]) by fmsmga007.fm.intel.com with ESMTP; 18 Sep 2018 03:17:36 -0700 From: Alexander Shishkin To: Andy Shevchenko , jack.henschel@mailbox.org Cc: Platform Driver , Darren Hart , 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 In-Reply-To: References: <2f2b3915-8415-6eb8-62af-f6392c65b2dc@mailbox.org> Date: Tue, 18 Sep 2018 13:17:35 +0300 Message-ID: <87h8in85z4.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Shevchenko writes: > On Wed, Sep 12, 2018 at 6:16 PM Jack Henschel 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