Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1524203yba; Tue, 2 Apr 2019 10:26:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2FhhPHezWmc10sWB12HLfS3TsFQyj89uxw279uX2QuvOoiPH5bfkaiRvzZxaX4y75b2fz X-Received: by 2002:a63:20f:: with SMTP id 15mr28206390pgc.90.1554225964280; Tue, 02 Apr 2019 10:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554225964; cv=none; d=google.com; s=arc-20160816; b=PyA5KKSl4XEkbWvZh8zpXaYvnavaT4TOsGZVoZF/81mvFDqAPRAe4zcfHb+EI2M3+/ Tk39SnVIl3Wb4kL8CLbOc7CI0MTcfqTGyUNDQ4nAv1TtapTFKujVSAIVxeM6sisM+4L/ K3BJS2A0SWOasExXa5momJ6uF0HvsNLi3P9qMUwMv6QVvYQQNlUDboXLcd9R2pwq/37t EJ6tV93cIRDWODKdC6H19SsiWyZhXIb0Qdjy/e+XWpesCxaO/dutjwFf1WN51wdn2Nwu ET7/Tg3AUwTf1uhxEKVJ+2xJNplVHWQpl1ew8H93dC14WR0Mb7HLHVo8I+ggMbwGoSVH rkYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=485ydUrqWelq72Uv5R1/ckgexl/YCXatES6D1zkn3NM=; b=XJysfP2a7SeJzYwXOJAz8bpBTKZmV6Ag01+QAQpXWZFSaWp+ZPS8i0/kjhylakFAoW dM51GxOqQxvEBD+2gnnALKirCPZiMsVuRhjFb0aMlEVP4LbTokBx8h8UF+LjGHyBM9u3 +2WXd+5mtjde5qgGoa3o4eoSTV7l1Xo3Ced4Y4A8hymlFgZ3C/2Ra2K9dhXiJlWdTH0L +WRH/bYQusz1bnSPI/1na3PIz/JkQsG5hbJzRc6+QBWtYG4aW+Rt8Q9eJidLR5Tph3Va /Z6oWdfzWnphchElDDi+JBdpXi+K5D1r7zny/K6l1qQS5O9FMlL5YRGkv/NSQnSSz9C3 7+iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k193si11772392pfc.150.2019.04.02.10.25.46; Tue, 02 Apr 2019 10:26:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729603AbfDBPvw (ORCPT + 99 others); Tue, 2 Apr 2019 11:51:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24601 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbfDBPvw (ORCPT ); Tue, 2 Apr 2019 11:51:52 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 38F2E3082B71; Tue, 2 Apr 2019 15:51:52 +0000 (UTC) Received: from treble (ovpn-122-147.rdu2.redhat.com [10.10.122.147]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B8CD8491D; Tue, 2 Apr 2019 15:51:51 +0000 (UTC) Date: Tue, 2 Apr 2019 10:51:49 -0500 From: Josh Poimboeuf To: Thomas Gleixner Cc: LKML , x86@kernel.org, Andy Lutomirski Subject: Re: [patch 15/14] x86/dumpstack/64: Speedup in_exception_stack() Message-ID: <20190402155149.c23ivzzc5hyykokl@treble> References: <20190331214020.836098943@linutronix.de> <20190331215136.039902969@linutronix.de> <20190402154329.scp7i7uqevubgwrz@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 02 Apr 2019 15:51:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 05:48:56PM +0200, Thomas Gleixner wrote: > > With the above "(stk <= begin || stk >= end)" check, removing the loop > > becomes not all that important since exception stack dumps are quite > > rare and not performance sensitive. With all the macros this code > > becomes a little more obtuse, so I'm not sure whether removal of the > > loop is a net positive. > > What about perf? It's NMI context and probably starts from there. Peter? I believe perf unwinds starting from the regs from the context which was interrupted by the NMI. -- Josh