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 B55B7A0471 for ; Mon, 12 Aug 2019 22:14:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BFA261B952; Mon, 12 Aug 2019 22:14:08 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 5083549E0 for ; Mon, 12 Aug 2019 22:14:07 +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 1hxGhX-0003Bb-M3; Mon, 12 Aug 2019 16:14:03 -0400 Date: Mon, 12 Aug 2019 16:13:20 -0400 From: Neil Horman To: David Marchand Cc: dev@dpdk.org, aconole@redhat.com Message-ID: <20190812201320.GA8474@localhost.localdomain> References: <1565593348-6431-1-git-send-email-david.marchand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1565593348-6431-1-git-send-email-david.marchand@redhat.com> 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 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 > +objdump -t $OBJFILE >$DUMPFILE > + When does this temporary file get deleted?