[PATCH v5 1/1] devtools: add tracepoint check in checkpatch

Stephen Hemminger stephen at networkplumber.org
Thu May 18 17:33:40 CEST 2023


On Thu, 18 May 2023 13:45:29 +0000
Ankur Dwivedi <adwivedi at marvell.com> wrote:

> >-----Original Message-----
> >From: Ankur Dwivedi <adwivedi at marvell.com>
> >Sent: Tuesday, March 7, 2023 5:35 PM
> >To: dev at dpdk.org
> >Cc: thomas at monjalon.net; Jerin Jacob Kollanukkaran <jerinj at marvell.com>;
> >Ankur Dwivedi <adwivedi at marvell.com>
> >Subject: [PATCH v5 1/1] devtools: add tracepoint check in checkpatch
> >
> >This patch adds a validation in checkpatch tool, to check if a tracepoint is
> >present in any new function added in cryptodev, ethdev, eventdev and
> >mempool library.
> >
> >In this patch, the build_map_changes function is copied from check-symbol-
> >change.sh to check-tracepoint.sh. The check-tracepoint.sh script uses
> >build_map_changes function to create a map of functions.
> >In the map, the newly added functions, added in the experimental section are
> >identified and their definition are checked for the presence of tracepoint. The
> >checkpatch return error if the tracepoint is not present.
> >
> >For functions for which trace is not needed, they can be added to
> >devtools/trace-skiplist.txt file. The above tracepoint check will be skipped for
> >them.
> >
> >Signed-off-by: Ankur Dwivedi <adwivedi at marvell.com>

Given the amount of string processing, it would be more readable in python.
That is not a show stopper, just a suggestion.


More information about the dev mailing list