Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4980157pxb; Thu, 14 Oct 2021 16:18:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNTJHd1zvxXzkkmit3ucU2J0QHGEhlvnsILr3qXEsC+CsztgVWipd/sThA90z4SXaZ+tJ4 X-Received: by 2002:a63:b950:: with SMTP id v16mr2380022pgo.361.1634253539619; Thu, 14 Oct 2021 16:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634253539; cv=none; d=google.com; s=arc-20160816; b=zdhTC0ti/U4EOQPjGxwGQyAO+R8YpJTgevrYzRwZhfohgzHnLkoPCYce0ipHn6cxtJ IIcmKEqaRVzbXlmQ0rkTH6yGJbGSryLQqFtDKrTv/flE++1wHnq0XnbHv0FhhThFHLNe F8GqtkA7H/j0fiIfC4zyDyU+agcw5itnnrOYarxvFiocQQMXJecYOKEL9ov0MiSNEQSq 9mGIfjREkIj/RhqXuP84YKUcDwhNK59u0BoI5C4XpRrzTzp5icNfNiH6l73O6eTaUaOQ Blo/e5lXLwJ6AnbX435tn4i6UD4vsaK5UatqHo3LQj4bpCMWjXTEBJEETvpKtyE8aKqL gSrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AafzswapDPTkg7dAS5SeXPSsZy6CJIYT17ewfhavBbM=; b=qEeA4MavxzwSEcqOjguSKWGSkwrmIEEpRzU32qfJWi/UnzERde89h6AHuDbvIYU4KQ D618SWzgBmt1QIvEEHCtCuU58tynERUhAYytqVEeeSIJTzVmtNHCHKHTgrUUdzqW4XO9 2ePgHQlYxlWP7hkYZSTUOVG0i2eqwC5rjOGJLZ4w3wSxT8AR2BFQc0DahJ8BVC3xBMtj jHzughpqxKSa2YilOJ3Ec9q1yhH/wYyz65RR3aPZnQfFyAlCT53aE2iOjqRA87KuZlUt F5EsFzF7e5S6pjpptqRs20ulVfaGbukTaSNS24Nvfg409Z9WNi3xNIvoMLn1KKjkgvXg 9VYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dwHtVUzB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si13151068pjj.135.2021.10.14.16.18.46; Thu, 14 Oct 2021 16:18:59 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dwHtVUzB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbhJNSnk (ORCPT + 99 others); Thu, 14 Oct 2021 14:43:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:41656 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhJNSnj (ORCPT ); Thu, 14 Oct 2021 14:43:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634236893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AafzswapDPTkg7dAS5SeXPSsZy6CJIYT17ewfhavBbM=; b=dwHtVUzBvVGDJWoanRznwanFG+Oagmjx5Lugxt4huoPd4tbbcjuXEJiTEx31nW/ulxzILm T9LL7+LtVqq9ewVda+i3thZ1SKLCmMKaheDkdlfZQd8YfgHDHVckFaFf/DUI7Zz+mdmJHP nzJDDrsVLgkXLPVGaPm9bikOYJtj2GQ= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-346-h2yHFrjgNj2Z1LoiUaa-RA-1; Thu, 14 Oct 2021 14:41:32 -0400 X-MC-Unique: h2yHFrjgNj2Z1LoiUaa-RA-1 Received: by mail-qv1-f70.google.com with SMTP id ge6-20020a05621427c600b003830ee0213bso6314232qvb.10 for ; Thu, 14 Oct 2021 11:41:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AafzswapDPTkg7dAS5SeXPSsZy6CJIYT17ewfhavBbM=; b=v4imbV2sMJ4E9p1DA53IyINp3j7TbdazqXVdlXqPBpUd4d2SnHVTabOoJ4GggrsozM itmvb+HRguTvoOrmvfS47xdsbwjEY/VNnzNbi12Uz8+DxaOiwlzqtLMSZqRC5PGvpuJz 1zk1J1Hr5O4VpfuRml+OQSjZEgkncjMbHdKAG6sWhSAk4+uLwIlMOdQN1EKD0nWcT57o jaGeiyIxoYym61CeYTm3qTyQLhW7xXESaQzMr/fmGR2oU/BCCp2/4ohE1v6ypWh0MMD+ nSPZtbYZfoSrwoAt7CKEUunlEJUtHg5VYwk/nNYO5pcDGcjlzloYqUj/yAhQz8gRoUps CXwg== X-Gm-Message-State: AOAM5336KBNiNykLao6sCIojij3yiGrptqKnEZw9fQRFeM402fle+cO4 YWnK9M/0O3O89pn2yEm7cy6CICmjOVjl/auBtZlg7DmnRMTqgc4M6i8ahp6DmkJY6dRscLY/FgT AJfYJnunApnaq2GJcePSqSEg1 X-Received: by 2002:a05:622a:148d:: with SMTP id t13mr1305785qtx.393.1634236891930; Thu, 14 Oct 2021 11:41:31 -0700 (PDT) X-Received: by 2002:a05:622a:148d:: with SMTP id t13mr1305732qtx.393.1634236891674; Thu, 14 Oct 2021 11:41:31 -0700 (PDT) Received: from treble ([2600:1700:6e32:6c00::15]) by smtp.gmail.com with ESMTPSA id h14sm1823421qkn.4.2021.10.14.11.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 11:41:31 -0700 (PDT) Date: Thu, 14 Oct 2021 11:41:25 -0700 From: Josh Poimboeuf To: Mark Rutland 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: <20211014184125.4qu7lih6uwvx35qs@treble> References: <20211008111527.438276127@infradead.org> <20211008111626.392918519@infradead.org> <20211008124052.GA976@C02TD0UTHF1T.local> <20211008161707.i3cwz6qukgcf4frj@treble> <20211014180738.GC39276@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211014180738.GC39276@lakrids.cambridge.arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 14, 2021 at 07:07:38PM +0100, Mark Rutland wrote: > 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? Correct, the reliable variants need to see the entire call stack and therefore they shouldn't skip sched functions. -- Josh