Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932121Ab0HXRU1 (ORCPT ); Tue, 24 Aug 2010 13:20:27 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:41316 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755521Ab0HXRUZ (ORCPT ); Tue, 24 Aug 2010 13:20:25 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=LAdyg50i3n5npOJrNKxL5JrJLp0v5sbPjRxMjb5OJsKXjuZlifamA6A3bxMGqhuJBQ nKMnPR5T0Fs5wzR3qgMS6mqENmwvnzUUYaVTw6KcI2FgzPp/FmZpcubqKgAP6SN4sGVb 1edm/H81HaX8ZSc3x/MPudaiuY9nTBWY+Xs8o= Date: Tue, 24 Aug 2010 21:20:22 +0400 From: Cyrill Gorcunov To: Robert Richter Cc: Ingo Molnar , Don Zickus , Peter Zijlstra , Lin Ming , "fweisbec@gmail.com" , "linux-kernel@vger.kernel.org" , "Huang, Ying" , Yinghai Lu , Andi Kleen Subject: Re: [PATCH -v3] perf, x86: try to handle unknown nmis with running perfctrs Message-ID: <20100824172022.GD5723@lenovo> References: <9g472epksbkxhgmw6a3qh8r5.1282316687153@email.android.com> <20100820152510.GA4167@elte.hu> <20100823085339.GA26713@elte.hu> <20100824162252.GB5723@lenovo> <20100824170936.GH26154@erda.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100824170936.GH26154@erda.amd.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1064 Lines: 28 On Tue, Aug 24, 2010 at 07:09:36PM +0200, Robert Richter wrote: > On 24.08.10 12:22:52, Cyrill Gorcunov wrote: > > Btw, guys, I fail to see how new nmi_watchdog work, we have > > default_do_nmi > > if (!(reason & 0xc0)) { > > if (notify_die(DIE_NMI, "nmi", regs, reason, 2, SIGINT) == == NOTIFY_STOP) > > return > > if (nmi_watchdog_tick(regs, reason)) > > return > > > > but perf_event_nmi_handler returns NOTIFY_STOP when watchdog is perf event > > and nmi_watchdog_tick _never_ called, or (most probably) I miss something? > > The watchdog is disabled during profiling (perf and oprofile) by > calling disable_lapic_nmi_watchdog(). > > -Robert > Huh? iirc Don have switched nmi watchdog to native perf subsystem, ie watchdog uses PERF_COUNT_HW_CPU_CYCLES event, letme check... -- Cyrill -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/