From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 993DCA0471 for ; Wed, 14 Aug 2019 02:09:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4EC3D1BDAE; Wed, 14 Aug 2019 02:09:47 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id B29141BDAC for ; Wed, 14 Aug 2019 02:09:44 +0200 (CEST) Received: from cpe-2606-a000-1405-226e-0-0-0-cbf.dyn6.twc.com ([2606:a000:1405:226e::cbf] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1hxgrD-0001za-2J; Tue, 13 Aug 2019 20:09:41 -0400 Date: Tue, 13 Aug 2019 20:09:04 -0400 From: Neil Horman To: David Marchand Cc: dev , Aaron Conole Message-ID: <20190814000904.GA11098@localhost.localdomain> References: <1565593348-6431-1-git-send-email-david.marchand@redhat.com> <20190812201320.GA8474@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: Re: [dpdk-dev] [PATCH] buildtools: lighter experimental symbol check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Aug 13, 2019 at 08:32:44AM +0200, David Marchand wrote: > On Mon, Aug 12, 2019 at 10:14 PM Neil Horman wrote: > > > > On Mon, Aug 12, 2019 at 09:02:28AM +0200, David Marchand wrote: > > > Dumping every object file for every symbol is too heavy. > > > Use a temporary storage. > > > > > > Before: > > > $ rm -rf master && make defconfig O=master > > > $ time make EXTRA_CFLAGS=-g O=master > > > [...] > > > real 2m24.063s > > > user 1m16.985s > > > sys 1m46.372s > > > > > > After: > > > $ rm -rf master && make defconfig O=master > > > $ time make EXTRA_CFLAGS=-g O=master > > > [...] > > > real 1m37.110s > > > user 0m49.417s > > > sys 0m51.803s > > > > > > Signed-off-by: David Marchand > > > --- > > > buildtools/check-experimental-syms.sh | 15 ++++++++------- > > > 1 file changed, 8 insertions(+), 7 deletions(-) > > > > > > diff --git a/buildtools/check-experimental-syms.sh b/buildtools/check-experimental-syms.sh > > > index 0f6c62d..47a06fc 100755 > > > --- a/buildtools/check-experimental-syms.sh > > > +++ b/buildtools/check-experimental-syms.sh > > > @@ -18,14 +18,15 @@ then > > > exit 0 > > > fi > > > > > > +DUMPFILE=$(mktemp -t dpdk.${0##*/}.XXX.objdump) > > > +trap 'rm -f "$DUMPFILE"' EXIT > > "If a sigspec is EXIT (0) the command arg is executed on exit from the shell." > > > > +objdump -t $OBJFILE >$DUMPFILE > > > + > > When does this temporary file get deleted? > > It should be enough? > Yes, thank you, I missed that. Acked-by: Neil Horman > -- > David Marchand >