From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] devtools: add script to verify map files Date: Mon, 28 May 2018 10:21:05 +0100 Message-ID: <20180528091941.GA15204@bricha3-MOBL.ger.corp.intel.com> References: <20180212161312.31795-1-pbhagavatula@caviumnetworks.com> <9253aa4f-17d2-53f7-8b57-4a9b5d6e1f53@intel.com> <4156041.IfarTdeXU8@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pavan Nikhilesh , dev@dpdk.org, Ferruh Yigit To: Thomas Monjalon Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id A4BD2DE0 for ; Mon, 28 May 2018 11:21:11 +0200 (CEST) Content-Disposition: inline In-Reply-To: <4156041.IfarTdeXU8@xps> 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 Sun, May 27, 2018 at 10:50:58PM +0200, Thomas Monjalon wrote: > Sorry for having missed this patch during so long. > > 13/02/2018 11:48, Ferruh Yigit: > > On 2/12/2018 4:13 PM, Pavan Nikhilesh wrote: > > > This script checks for the symbols specified in the map files against > > > the symbols present in the map file directory. > > > Currently, the script checks for map files in drivers and lib directory. > > > > > > Example: > > > ./devtools/check-map.py > > > > > > The following symbols are unused : > > > > > > Map file : /home/pavan/Work/clean/dpdk/drivers/mempool/dpaa/... > > > ['rte_dpaa_pool_table'] > > > > > > Map file : /home/pavan/Work/clean/dpdk/drivers/bus/fslmc/... > > > ['qbman_get_version', 'qbman_swp_send_multiple'] > > > > > > ... > > > > > > Signed-off-by: Pavan Nikhilesh > > > > +1 to improve our tools. > > > > Acked-by: Ferruh Yigit > > I agree we must have more tools. > > I think this check can be a lot simpler as a shell script, > instead of Python. It does not need the list features of Python. > While the shell version can be shorter, I always find python scripts to be far easier to read, understand and therefore maintain than shell scripts. While power-users of shell, like yourself, Thomas, can come up with some amazing stuff done in shell, it tends to make them very hard to follow for us mere mortals. /Bruce