Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4809176pxb; Thu, 14 Oct 2021 12:23:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmq7icP9i7aC57eAdIZ3aYCaJX3l+WIG86l/x3FRA6CUvHmU1iIxqzbz6jhJ++bJexQfOW X-Received: by 2002:a17:90a:352:: with SMTP id 18mr8190934pjf.116.1634239388355; Thu, 14 Oct 2021 12:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634239388; cv=none; d=google.com; s=arc-20160816; b=VF04i0yR3/A7nbe4lzHH2b3ek47I5UHHDid+4YkXaZgO+sISDHI4sLGz11owxkUwj8 oof/KywvqO2tILP4LJur5xms4w8EPigg337QyQjrHOAAZ6OP113RJCFJ8ep75X9WTQEm quJ8rV4qbePYqfnA2b/fv8u+fPDHjV6qCAt4peGPoLCX0ekrqBs/jceXgUdexVc1j6bh 25BoNThw4d5snp2DvbHnOpv2oNojFtsBwVp3EwMRWlgO4Bw2QUrpfLTOKEwkUP0VpFPc iCKL/rcX6jjG7wxIe3eb1Pxi/ZXPDxoA19vqXzXGdhD0jVDS0CEhOVSCqnrlFZzzvZGA OVHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JLG9P+SNEpdgD9mSctTIL1wx8F1CtX/7ltmg7+7MMJk=; b=Z69q+dT5opvJNxFCpQ8HwPgurSR1eJgtIOs8GICTsPXEGIl8THVQChzQu+CFRV1vC5 T2yxffYndE0iuO6zLE7cCQRZQ6PqIMMl6d4C/4071GqOkjdDuoI5+62jkgAzqLqCtkxo sBbQ8tmiLJxFTyAWegAgBxdkjrEEOe8MDCGRiMZPsN18dhDVh5PNofsCsL5O6szBBmhZ w5LtuQOpY2SN6/uNavkHT6pcC3LoXpYj/IIVewiu/TKRqJ3HHXKllQhteEXJXJOJSogw bAPKR4kiDc29mnQjdDjbGyMQf2mxS5vI1y/3g3uKGyuyRKpJRfyJBJoUUiHZnTT9N+9o gbXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x3si4677131pgp.147.2021.10.14.12.22.54; Thu, 14 Oct 2021 12:23:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233643AbhJNSJw (ORCPT + 99 others); Thu, 14 Oct 2021 14:09:52 -0400 Received: from foss.arm.com ([217.140.110.172]:58642 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233467AbhJNSJv (ORCPT ); Thu, 14 Oct 2021 14:09:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 73CED1515; Thu, 14 Oct 2021 11:07:46 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 51FE13F66F; Thu, 14 Oct 2021 11:07:40 -0700 (PDT) Date: Thu, 14 Oct 2021 19:07:38 +0100 From: Mark Rutland To: Josh Poimboeuf Cc: Peter Zijlstra , keescook@chromium.org, jannh@google.com, linux-kernel@vger.kernel.org, vcaputo@pengaru.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, akpm@linux-foundation.org, christian.brauner@ubuntu.com, amistry@google.com, Kenta.Tada@sony.com, legion@kernel.org, michael.weiss@aisec.fraunhofer.de, mhocko@suse.com, deller@gmx.de, zhengqi.arch@bytedance.com, me@tobin.cc, tycho@tycho.pizza, tglx@linutronix.de, bp@alien8.de, hpa@zytor.com, axboe@kernel.dk, metze@samba.org, laijs@linux.alibaba.com, luto@kernel.org, dave.hansen@linux.intel.com, ebiederm@xmission.com, ohoono.kwon@samsung.com, kaleshsingh@google.com, yifeifz2@illinois.edu, linux-hardening@vger.kernel.org, linux-arch@vger.kernel.org, vgupta@kernel.org, linux@armlinux.org.uk, will@kernel.org, guoren@kernel.org, bcain@codeaurora.org, monstr@monstr.eu, tsbogend@alpha.franken.de, nickhu@andestech.com, jonas@southpole.se, mpe@ellerman.id.au, paul.walmsley@sifive.com, hca@linux.ibm.com, ysato@users.sourceforge.jp, davem@davemloft.net, chris@zankel.net Subject: Re: [PATCH 6/7] arch: __get_wchan || STACKTRACE_SUPPORT Message-ID: <20211014180738.GC39276@lakrids.cambridge.arm.com> References: <20211008111527.438276127@infradead.org> <20211008111626.392918519@infradead.org> <20211008124052.GA976@C02TD0UTHF1T.local> <20211008161707.i3cwz6qukgcf4frj@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211008161707.i3cwz6qukgcf4frj@treble> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 09:17:07AM -0700, Josh Poimboeuf wrote: > On Fri, Oct 08, 2021 at 03:45:59PM +0200, Peter Zijlstra wrote: > > > stack_trace_save_tsk() *shouldn't* skip anything unless we've explicitly > > > told it to via skipnr, because I'd expect that > > > > It's what most archs happen to do today and is what > > stack_trace_save_tsk() as implemented using arch_stack_walk() does. > > Which is I think the closest to canonical we have. Ah; and arch_stack_walk() itself shouldn't skip anything, which gives the consistent low-level semantic I wanted. > It *is* confusing though. Even if 'nosched' may be the normally > desired behavior, stack_trace_save_tsk() should probably be named > stack_trace_save_tsk_nosched(). I agree that'd be less confusing! Josh, am I right in my understanding that the reliable stacktrace functions *shouldn't* skip sched functions, or should those similarly gain a _nosched suffix? Thanks, Mark.