Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp228498rwl; Wed, 29 Mar 2023 00:29:46 -0700 (PDT) X-Google-Smtp-Source: AKy350YH6HrcIrRGyVm2diWBmVXTBdmRIGUELbzf8QMooU/5RVpaofcQIQnHpuBbGwa88BmGCSfd X-Received: by 2002:a05:6402:26d5:b0:4af:7bdc:188e with SMTP id x21-20020a05640226d500b004af7bdc188emr1352674edd.16.1680074985911; Wed, 29 Mar 2023 00:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680074985; cv=none; d=google.com; s=arc-20160816; b=OceGPAEbwSBGJqPhqV3HdS/Xu4rAE+0iK1v0ukpvAwdOkc20LLTsi17uH1qP24bKKA Vm2cAyvPAfklKlPUPide8cDiowKXvot1pqdNkZDOxp6gbAHS18XWe3aLuSBc9I+r6u4V RGD9fGn5G5kNArizzeJeiep0uQvNl5dZWtJ3M6xDiN2klDZNvHDW7IdstErUIh0eVl2t 3YUD+GnI81DiVofUjI3Sxd+6zhGLQjAIOwb7rQva7lY1CCwewFXdwzcLrVOVZINaGGTD sIx0BUpw3J9LgyEP3bDoeNmcuFi8153eLfRSEu6ArWu3rRrqlYRp8jhzpNqovXAH6mx5 dG9g== 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=Yy1wkYgvgMDd/vCl3FW915GQ/MczElW/ywdeEhVnOMg=; b=RKn7w9ACFSkGiwV+2UkK0u1YknRoXjO/vfy7M0QeW4DzrZbUsY2RcESnW1OR48JxSM 8bWFbwgYRkVl+SymhS19YRZBCOocV1ZUBotaG1sg+q8E0mwncsC7fHN/TyYqE/TlZJqw GbE+Dfnb9SZG5PWU48TnRGlPhqFPyKHHzE58wWqjcKYbq6tx/CIKLdzpbgz10MF7lAws TxHut8su4fgK+7Zyi8xM119g6Vu59FIef2bcjHlpqCOhSNQY08a4ZlPKIgHDQ8Y3grVf x9cmaPKiiiLFLtWL52StuzKaga8PM9I1TKX//cIZQj42cSSiLLaekfzejKNOK/4QEszD uwjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hB7dDv5J; 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 u1-20020a056402064100b004fddb3185f5si33800311edx.201.2023.03.29.00.29.21; Wed, 29 Mar 2023 00:29:45 -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=hB7dDv5J; 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 S230141AbjC2H2R (ORCPT + 99 others); Wed, 29 Mar 2023 03:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbjC2H1Y (ORCPT ); Wed, 29 Mar 2023 03:27:24 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 941D149D8 for ; Wed, 29 Mar 2023 00:25:58 -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=Yy1wkYgvgMDd/vCl3FW915GQ/MczElW/ywdeEhVnOMg=; b=hB7dDv5JGIB2g3oWXu/AUBFBIf 0CeoTyQcK7CmnPiismEmt678wOXobpFUwZgGYdxryFCZpTEsBVoCkMAsIYVtp2htoJHJAlaWPnJbs c4VnqUgjeTOwL8rJL5COJNeWXwx4QY3OMnxkyGL0sjKWBW0QFvN+R/pBHFvZ6vOWHbbsC9Vtmi2hP 3en9ltL3jlnM3e5Jk5gimLyQU3xeC65VMhhClj+OLNO+sHio5d6ALTfgX/pu9Vf6xk0xlCVse87HR 6gVg0412DQOY8cQMgvP5KYcklMR7/LTW4RMY+Pxzc0T/iDnR/qNq8HNZJJpss/RS6VrUFEaxt2SEq jds79IyA==; 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 1phQBu-009CZH-2z; Wed, 29 Mar 2023 07:25:54 +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)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8E6413000E6; Wed, 29 Mar 2023 09:25:53 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 72F2C2CC6DE9A; Wed, 29 Mar 2023 09:25:53 +0200 (CEST) Date: Wed, 29 Mar 2023 09:25:53 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Miroslav Benes Subject: Re: [PATCH 2/5] objtool: Combine '--backtrace' with '--verbose' Message-ID: <20230329072553.GH4253@hirez.programming.kicks-ass.net> References: <20230328080743.GC4253@hirez.programming.kicks-ass.net> <20230328201921.ccl7p65le5aysa6j@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328201921.ccl7p65le5aysa6j@treble> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 Tue, Mar 28, 2023 at 01:19:21PM -0700, Josh Poimboeuf wrote: > On Tue, Mar 28, 2023 at 10:07:43AM +0200, Peter Zijlstra wrote: > > On Mon, Mar 27, 2023 at 09:00:45AM -0700, Josh Poimboeuf wrote: > > > Get rid of the '--backtrace' option, instead including that > > > functionality in '--verbose'. This makes it easy to gather all the > > > information needed for diagnosing objtool warnings. > > > > Hurmm.. can't we have verbose imply backtrace but keep the separate > > option? I'm not sure if I always want the objdump thing -- esp with > > multiple warnings on vmlinux that's going to be really slow -- better to > > dump the whole of vmlinux.o once at the end. > > That's a good point, vmlinux would be unbearable for multiple warnings. > > We could accumulate a list of affected functions and then supply that to > objdump-func.sh at the end and dump them all at the same time. > > objdump-func.sh would need to be changed to look for multiple funcs at > once. > > If I do that, do you still want the separate backtrace option? For now, lets keep the orthogonal options -- we can always remove it later if we find they go unused. This automagic stuff is going to take a bit of getting used to I recon ;-)