Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp949766rwl; Wed, 12 Apr 2023 06:27:43 -0700 (PDT) X-Google-Smtp-Source: AKy350bb1BC4H+EzcX3qpyfTDR9KzW4KLa5J4+C7YkuoU3tdsCj415+RhrHi3Yh6fTvoBMMk/ODN X-Received: by 2002:a05:6a20:2884:b0:d7:47e8:59b9 with SMTP id q4-20020a056a20288400b000d747e859b9mr2359229pzf.3.1681306062756; Wed, 12 Apr 2023 06:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681306062; cv=none; d=google.com; s=arc-20160816; b=qsHaRMGkYlkyOQR+Uu42EDDMh0/vOF51PwfhEv/Rpjd+IIt8+b991yoMcTZG9hMSsH lj1KIBrjBDgwVlmWKPc+A63464+JhRgkWAZx6HoVsWQCodDN+jz/JS5nw9R9ZrxOujFf q148DXhdujSskibXf7KWhu4MtspN7Amo8B1shdftgzzvcIuDVKRmLRrwOy/UiRYE8wJK HSuSSzp6wPW426ip2xQlSCmYRupKDJ1nl/ymCOwSxVoUjN2UW2tlWOS6D2oijb0Uh8Hb aSybcLZ/OlSMUkHg+PMD0CksuCTw/+UP3gZmWWhA2pLtv18dq1ECe8An/owj/dcmjTXj Qfyw== 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=ZOpVsBLi+QPCjVijyE4qoD9CwMV07gYwgw6yzHIKbL4=; b=tWJmTx27/9D4WME0HtnZwrXMx3jp7vhC5AVLcw4Na2JE4Ua61W+wEakcQyi2HoWaRu 3kHZMc1yR56dSALIXKgxLz9DRcOkx39vMRZSz+aDWyghluqthhMnUzLh6vWkrRjl68km aE8uZAtm717wpfccHVzXO3ij26hqPG5+vvVQGmXPwKPaVB/Hwb0e+uj+WiKOi/E+n8KX HhGhWLPOnM87logLJJXnq4+9zBqwrV9X6iZUu8VC+NNrFpbG8nwoaRzWDCghAcgCF0Gq 0FGhNZjDCQyGpKX8nUi+B+JIbDNefw1fTuG4IV/6JZmaKtYq4C0PLEd3hHGiGLHpr37c hCAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=C9rIX4ON; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 200-20020a6219d1000000b00637e7c7fd8bsi7897858pfz.393.2023.04.12.06.27.31; Wed, 12 Apr 2023 06:27:42 -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=@infradead.org header.s=casper.20170209 header.b=C9rIX4ON; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbjDLNZF (ORCPT + 99 others); Wed, 12 Apr 2023 09:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbjDLNYe (ORCPT ); Wed, 12 Apr 2023 09:24:34 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E245272 for ; Wed, 12 Apr 2023 06:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ZOpVsBLi+QPCjVijyE4qoD9CwMV07gYwgw6yzHIKbL4=; b=C9rIX4ON3O2xfHHNQbIz10igWB HRO1ciN9LO1/OsPlWUUYIa27fkMUQ8Hq2untQ2+p/BzyqMazMDE45kW8l6oIZrFdx8/J32V7XBlmt Y+1r5rplAALwNUBjdR9pJdUBIREyJ+JoOMgGwG/Kg3JLJpOIpE2wkI6vCv8Q8AVhVXgBtepY6q1kr uoTwngsEexnSknqEJKcWfDlpbfks7KTtDuvMEm8evIjTtTKEuVzfJBc3HYMfbqzYrHR+T/5IbF8ie Px82+T9dh5AyvRiM8v8u6JPk1x9erF52OP7LcPZ8juLKk3hkaY/MbN3md3NX8iYEvjdod8egxaryI pDPZjnIQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pmaRc-006tjv-Fp; Wed, 12 Apr 2023 13:23:28 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 80A203002A6; Wed, 12 Apr 2023 15:23:27 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6795625E5A3B1; Wed, 12 Apr 2023 15:23:27 +0200 (CEST) Date: Wed, 12 Apr 2023 15:23:27 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: Qi Zheng , 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: <20230412132327.GA629496@hirez.programming.kicks-ass.net> References: <20230330081552.54178-1-zhengqi.arch@bytedance.com> <20230330081552.54178-3-zhengqi.arch@bytedance.com> <20230408050822.ezdbhc6j7zuvutrm@treble> <20230412131533.GH628377@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230412131533.GH628377@hirez.programming.kicks-ass.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED autolearn=ham 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 Wed, Apr 12, 2023 at 03:15:33PM +0200, Peter Zijlstra wrote: > On Fri, Apr 07, 2023 at 10:08:22PM -0700, 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? > > Didn't I do that a while back ? I can't seem to actually find the > patch-set though :/ Could be this series: https://lkml.kernel.org/r/20211022150933.883959987@infradead.org And this here: https://lore.kernel.org/lkml/CAHk-=wjHbKfck1Ws4Y0pUZ7bxdjU9eh2WK0EFsv65utfeVkT9Q@mail.gmail.com/ might be why I dropped it.. I can't remember.