Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2460441rwl; Sat, 8 Apr 2023 15:52:12 -0700 (PDT) X-Google-Smtp-Source: AKy350aFCoL+RQliu9Jeb8DC/jbNUN4ntwfEwsMzuSnd2R+rLB2IENzkUOj2SQ4bHMFRebxW1w0v X-Received: by 2002:a17:906:e17:b0:932:c315:b0d with SMTP id l23-20020a1709060e1700b00932c3150b0dmr2840218eji.34.1680994331906; Sat, 08 Apr 2023 15:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680994331; cv=none; d=google.com; s=arc-20160816; b=FEf6drne5bJfXS4/Bd+JAZNBa4bk5/HuPhLXIeFulJC9EmZhfAZNLVnrL5GiUWwFQY DVNd3+PyOp785WhXUdbwsbU5R8617GZlf8/jOTLlS9fjaIRfOg6lJJDFJ5oZ4IxdNTKr bifA0Gn1V061v45oqSWHQp/YXs0+5vJ9L86l+UjSGCmNbNz2OxmmGZkHZV2eyfnUR2rf rbQ2g/CCPyIG90bI7qPN9+tBV6oPXHj3wfd3IDfougo7zIxUdnAzmm3gqNmZUvh6muws ypFKIMTcc+QmXshqMwQhnUs696MMFgE3wgOYcfJaqFfahCDOnmV33XfAVBu/R9skSxVG o42Q== 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=0PYC/jPpImFbsRjmr2YSesWRZbC/QqOzLHntM0MF4IA=; b=dd829G9YlucYpcRT7cSCWAmueAgdmZdonbq/Ja3JGfLgprEpgIzF1QR0AriYEf7QuE erHrn64vXG+Y9H8V1bdzXpTEgT9fcSGxjMMvMV4gz05d85iFKIsw/ueoW4Memk9FJe1x ld02uDA41lmer35m9wIFXsMtoLJ8YnGTFt2HvGtVSdTnyuhbiwRKuRG2abqnLz9G6zkA dqUjVI4nJO7WDYksEoX8zlMcEIwqsFjm6oIXPcaWNt0IF1lK5D84tAwAexEUYGp+Ttn2 LEKZLkprd4LbRmZgtK4FbBGOsbb2HFHoIJx4u7u5WkjjtWmdjmPVim7i7tSXkvNTDHwM qu9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fcfe6uDS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l23-20020aa7c317000000b005048b964ed4si2177435edq.562.2023.04.08.15.51.37; Sat, 08 Apr 2023 15:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fcfe6uDS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229456AbjDHWMN (ORCPT + 99 others); Sat, 8 Apr 2023 18:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjDHWML (ORCPT ); Sat, 8 Apr 2023 18:12:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C32CC49D9 for ; Sat, 8 Apr 2023 15:12:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5381060B61 for ; Sat, 8 Apr 2023 22:12:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D48AC433D2; Sat, 8 Apr 2023 22:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680991928; bh=OYLcFZhhMyeC/gCCEbJPEFclaV3bu8ErLz9OL8jhDe0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fcfe6uDS5S/e7WCot3NZAUxBUjQMgfewzolIKOThHnmp20tpX7CRd3xnhYhAWSpQw YCtPmCD//MTmuElIVfXir+bOczzvtNbaZZ/iWukx92V+l0nwVOmIPFmBVnljbTC0ba 8Qwk9vOAc08khnhQ1Da/uy7AoIj4xiUq3i5+NT3vEwKF4cuDLxn8szHgbuIE5FQmmo Ei4kavmhTZ6BmBKEzVSeMym4osi6QUuXTmO0C+77MTqjB8meHVUbB3RzPrSfYtqg1o JNcRWC00bNYKPF6YBab8KhHqEGiQXeEn4LIXkCHGWRqmrLVN79yjS6xtqNr3u29kGN LIPhpc2fUTkEA== Date: Sat, 8 Apr 2023 15:12:06 -0700 From: Josh Poimboeuf To: Qi Zheng Cc: peterz@infradead.org, keescook@chromium.org, dave.hansen@linux.intel.com, bp@alien8.de, mingo@redhat.com, tglx@linutronix.de, rostedt@goodmis.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] x86: make __get_wchan() use arch_stack_walk() Message-ID: <20230408221206.mi7nsquoxklgword@treble> References: <20230330081552.54178-1-zhengqi.arch@bytedance.com> <20230330081552.54178-3-zhengqi.arch@bytedance.com> <20230408050822.ezdbhc6j7zuvutrm@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 08, 2023 at 01:36:06PM +0800, Qi Zheng wrote: > > > On 2023/4/8 13:08, Josh Poimboeuf wrote: > > On Thu, Mar 30, 2023 at 04:15:52PM +0800, Qi Zheng wrote: > > > Make __get_wchan() use arch_stack_walk() directly to > > > avoid open-coding of unwind logic. > > > > > > Signed-off-by: Qi Zheng > > > > Can we just have a shared version of __get_wchan() for all > > CONFIG_ARCH_STACKWALK arches? > > From a quick glance, I think it's ok, but we still need to define > the arch's own get_wchan_cb(). I will try to do it. Hm, why would we need to do that? -- Josh