Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp909193pxb; Fri, 22 Apr 2022 14:03:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFd++4WY3etmw61poXKg95EJVfXxacO4zY3LW+kWhi7UkzJus4a7CyChOu6Xr5jgZuxFlx X-Received: by 2002:a17:902:eccf:b0:158:fe6d:1eef with SMTP id a15-20020a170902eccf00b00158fe6d1eefmr6444759plh.126.1650661412270; Fri, 22 Apr 2022 14:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650661412; cv=none; d=google.com; s=arc-20160816; b=ZNAD8ukNA2feLBJx/j+O1KKu8KLxX7QuESLafGgSW2UVSL9QovOcXHlb5CSULLdLK1 ArT3a9TTjPfW7a3CJ1x98ytDa5H9FEdrGWxMUqNxXjAk8e4TTM38OmpT3Gqa1/0ICp34 ZrmXfDYdRUdiqXrLOaFSMBVyJ30FxOc463Ip+sUY9lwSTpwW8vSrxF1A9HzKeI6hovUY DMQ/A8eTOSoqSBviYrkDI13+dg4wSDRZueA+XzaQz3HifzNr8zRjBG8i7zu2arRTmWqW tP/dn7wDFrKfC3W0XUB54aWvVwEq2J6ZnP/qQLYc9HiFg8DCMv2vtSKo/Dda6o8Qhqic 1Rog== 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=5H5M+/nukyq+ClIyXnFYHWEZmwimqI4Y/2Onc+gYQxU=; b=lcNUoqIcUoYkxzSoe+k2obaBj8ahP36wvck8c94I11mFHj8WJZiGbrVNlk/9ub9xXo RFlbekrLlVUaLTw0VzbPOGd9ErGWFQebsi5sx8bqCZvYBvpBGOZnl2xvG3Jsz6e7UetA U9pXqNBYDyMenyR3I489RJc/l8Osa1zGKlZUhVZEnpIxuJGzkidiKqJdcRD+NB3Nk1x1 F9exbG2dTvAoZEgFKCEPf8HcF5kBsfHBQDLUBJrFercBVf+CQYlf9OWdQKTNcB40pjii gI7+kjh4apSB3HVE72XHZMSl3iawPbTVYUcoPj6MjptpxzURPU5mUdX9LhzMjpt/Lwad c6xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gsjaTQGv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u191-20020a6385c8000000b003aa8b889a5bsi5753610pgd.513.2022.04.22.14.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:03:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gsjaTQGv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96DE022CAB0; Fri, 22 Apr 2022 12:59:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387021AbiDUIzr (ORCPT + 99 others); Thu, 21 Apr 2022 04:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345809AbiDUIzp (ORCPT ); Thu, 21 Apr 2022 04:55:45 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D810120F4E for ; Thu, 21 Apr 2022 01:52:55 -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=5H5M+/nukyq+ClIyXnFYHWEZmwimqI4Y/2Onc+gYQxU=; b=gsjaTQGvOWmOn0vHz+72zmXEHr AYkDtYPJmAcOsS9lf7AVqAfme9yuQPkQkw/vi+dYFCPealXjIdSjwBgO6MI62inuPu6chfWjeRvGW 9nk/cUwJJFa4vli7aGIOOLsn2CJWOi2NGaq3aopxw2ISsQ+Xj/5rk7Mdci1spKWyxgr5LQ+U+MisS EdHi76NZzn49tlhhQ4OVZCNgYx22TbO8BrH3es2IrPp0q/pxXMYy9BjqTWvU0WnBYhhlF2oK/PtLU uf8sOj+gPym7dLGXY+dvmtZAbs+uOOXHGTqkh0FfyavVrI6oCgUcuI2DdcJ+lhirJF3kRVgdxQmqJ dTkB5b0g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhSYQ-004vhL-R3; Thu, 21 Apr 2022 08:52:47 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id ACFC19861C1; Thu, 21 Apr 2022 10:52:44 +0200 (CEST) Date: Thu, 21 Apr 2022 10:52:44 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Miroslav Benes , Borislav Petkov Subject: Re: [PATCH v3] scripts: Create objdump-func helper script Message-ID: <20220421085244.GL2731@worktop.programming.kicks-ass.net> References: <4d3ab1f17230f0188698cfbc7ba08696fe1abfe9.1650474927.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4d3ab1f17230f0188698cfbc7ba08696fe1abfe9.1650474927.git.jpoimboe@redhat.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 20, 2022 at 10:16:36AM -0700, Josh Poimboeuf wrote: > +${OBJDUMP} -wdr $OBJ | gawk -M -v f=$FUNC '/^$/ { P=0; } $0 ~ "<" f ">:" { P=1; O=strtonum("0x" $1); } { if (P) { o=strtonum("0x" $1); printf("%04x ", o-O); print $0; } }' Two noteworthy changes: - $@ went missing, I've occasionally abused that to add extra argument to objdump. - you removed the glob after FUNC, I had that so that .cold and .constprop etc.. variants of the function also show up. I don't suppose either one are super important, but esp. that latter one has been convenient.