From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755735AbbFOQZr (ORCPT ); Mon, 15 Jun 2015 12:25:47 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:40102 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754213AbbFOQZk (ORCPT ); Mon, 15 Jun 2015 12:25:40 -0400 Date: Mon, 15 Jun 2015 18:25:25 +0200 From: Peter Zijlstra To: Vineet Gupta Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, Alexey Brodkin , arc-linux-dev@synopsys.com, Arnaldo Carvalho de Melo Subject: Re: [PATCH 4/8] ARCv2: perf: Support sampling events using overflow interrupts Message-ID: <20150615162525.GH3644@twins.programming.kicks-ass.net> References: <1433852372-29494-1-git-send-email-vgupta@synopsys.com> <1433852372-29494-5-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433852372-29494-5-git-send-email-vgupta@synopsys.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 09, 2015 at 05:49:28PM +0530, Vineet Gupta wrote: > + if (arc_pmu->has_interrupts) { > + int irq = platform_get_irq(pdev, 0); Hmm, so you're requesting a regular interrupt. I see your architecture has IRQ priorities, could you play games and create NMIs using those? For example, never mask L1 (assuming that's the highest priority) and treat that as an NMI.