Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1448237yba; Tue, 2 Apr 2019 09:03:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFFNLgWaU2S6D1WpVM+SJaXePeaScrzuaY0Tk9tsrN0dIRGCmvrN563Lk285CwdtiUjfsk X-Received: by 2002:a62:26c1:: with SMTP id m184mr39609848pfm.102.1554221038703; Tue, 02 Apr 2019 09:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554221038; cv=none; d=google.com; s=arc-20160816; b=ph9fM+4gB+Re1Y2ZZI7aioQaOOi+/vNxd8wavFbvvDQjN4ZZsLNKOrFpP5sB6Y2lRc Yg76OIJb/oH6BBtqjj6fLQKUtIfdvp6pM6FMSMOY/j3/5Ce5N4HC88OCPVEUYKqonJE7 J7ZTTjIzGlTEeaDZ0jVwGu4jm2PgbGFy89cauyOoi4bsOiFSJ2HTQmCJCYfxw1TC63gW zwRQaAaw0KmOVVO6Iv5F9QC/706st2VCvT0Tlo6sgVwdhzeWteuOyXtKtrOYaFaLT+BW Db3bVaKWEJ6mMC6Afq23W8C5pcW7ycZI9HUJwbH4+qYnZv69P1sRCU71CQgo5AzV0xms GeVA== 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=TNwDs/YUKI55py1JRp6nfcCLty8CWXZxHWnsM307cz8=; b=AUvrxmPE54UQBEc1qNc+XxTi0if4kBbxZaoTKECx8ZOMSJdAb5waEAbj/SOGC22y7X dSPwGJbuS3az9kN+OAmrIQoWTt1Q04p9AYEat12+vD5dHKW+gge7HeGDTIyQz0fDi1JO ECvaB9un+uegRlCOacarM9UOhAoh4NTlpVCSj1AxnfyJ8ztYZLU/cfWPSn7oAiyer6lP 9aV/iXFr0/fdRqNAtu3QJhR57Hmw+8hoK4N8CAJiuHKRnn+pP7hcRMrYglwjWGMymwpa VFNcYXVb184jbyVHpLSj8UddZ9vH8BFYzQTGjnUVfSbXa47JKFbFze7jNM352IP313X0 JoQA== 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 z31si11797792plb.333.2019.04.02.09.03.41; Tue, 02 Apr 2019 09:03:58 -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 S1729517AbfDBPxG (ORCPT + 99 others); Tue, 2 Apr 2019 11:53:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbfDBPxF (ORCPT ); Tue, 2 Apr 2019 11:53:05 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8B86081DE1; Tue, 2 Apr 2019 15:53:05 +0000 (UTC) Received: from treble (ovpn-122-147.rdu2.redhat.com [10.10.122.147]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D53DB194B7; Tue, 2 Apr 2019 15:53:03 +0000 (UTC) Date: Tue, 2 Apr 2019 10:53:01 -0500 From: Josh Poimboeuf To: Thomas Gleixner Cc: LKML , x86@kernel.org, Andy Lutomirski , Peter Zijlstra Subject: Re: [patch 15/14] x86/dumpstack/64: Speedup in_exception_stack() Message-ID: <20190402155301.fvvt5f3veilixv3j@treble> References: <20190331214020.836098943@linutronix.de> <20190331215136.039902969@linutronix.de> <20190402154329.scp7i7uqevubgwrz@treble> <20190402155149.c23ivzzc5hyykokl@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190402155149.c23ivzzc5hyykokl@treble> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 02 Apr 2019 15:53:05 +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 10:51:49AM -0500, Josh Poimboeuf wrote: > 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. Adding Peter to keep me honest. -- Josh