From: Thomas Monjalon <thomas@monjalon.net>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>,
dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>
Subject: Re: [PATCH] devtools: add script to verify map files
Date: Mon, 28 May 2018 11:31:31 +0200 [thread overview]
Message-ID: <3042130.2JFbLzL6mQ@xps> (raw)
In-Reply-To: <20180528091941.GA15204@bricha3-MOBL.ger.corp.intel.com>
28/05/2018 11:21, Bruce Richardson:
> 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 <pbhagavatula@caviumnetworks.com>
> > >
> > > +1 to improve our tools.
> > >
> > > Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
> >
> > 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.
Some processing are simpler in Python.
But here, the python script is mostly calling some shell commands and
filtering like grep.
For comparison, python version:
http://dpdk.org/ml/archives/dev/2018-February/090772.html
shell version:
http://dpdk.org/ml/archives/dev/2018-May/102993.html
next prev parent reply other threads:[~2018-05-28 9:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 16:13 [PATCH] devtools: add script to verify map files Pavan Nikhilesh
2018-02-13 10:48 ` Ferruh Yigit
2018-05-27 20:50 ` Thomas Monjalon
2018-05-27 21:54 ` [PATCH v2] devtools: check orphan symbols in " Thomas Monjalon
2018-05-29 15:56 ` Thomas Monjalon
2018-05-28 9:21 ` [PATCH] devtools: add script to verify " Bruce Richardson
2018-05-28 9:31 ` Thomas Monjalon [this message]
2018-05-28 13:17 ` Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3042130.2JFbLzL6mQ@xps \
--to=thomas@monjalon.net \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=pbhagavatula@caviumnetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.