From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: Re: [PATCH v13] devtools: alert on new instances of rte_panic and rte_exit Date: Mon, 10 Sep 2018 08:06:21 +0200 Message-ID: References: <1531745044-19185-1-git-send-email-arnon@qwilt.com> <1532643058-21027-1-git-send-email-arnon@qwilt.com> <7301022.qQQo3EDiVl@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: dev@dpdk.org, "Burakov, Anatoly" , "Lu, Wenzhuo" , Declan Doherty , Jerin Jacob , "Richardson, Bruce" , Ferruh Yigit To: Thomas Monjalon , Arnon Warshavsky Return-path: Received: from mail-yw1-f67.google.com (mail-yw1-f67.google.com [209.85.161.67]) by dpdk.org (Postfix) with ESMTP id BABBF4C95 for ; Mon, 10 Sep 2018 08:06:42 +0200 (CEST) Received: by mail-yw1-f67.google.com with SMTP id q129-v6so7431903ywg.8 for ; Sun, 09 Sep 2018 23:06:42 -0700 (PDT) In-Reply-To: <7301022.qQQo3EDiVl@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 Tue, Jul 31, 2018 at 2:38 PM, Thomas Monjalon wrote: > 27/07/2018 00:10, Arnon Warshavsky: >> This patch adds a new function that is called >> per every checked patch, >> and alerts for new instances of rte_panic/rte_exit. >> The check excludes comments, and alerts in the case >> of a positive balance between additions and removals. >> >> Signed-off-by: Arnon Warshavsky >> Reviewed-by: Stephen Hemminger >> Tested-by: Kevin Traynor > > Applied, with small adjustments, thanks I get some warning when running this on Ubuntu 18.04. marchand@gribouille:~/git/dpdk$ ./devtools/checkpatches.sh sanity/0001-mbuf-add-sanity-checks-on-segment-metadata.patch ./devtools/checkpatches.sh: 52: read: Illegal option -d 1/1 valid patch + false + check_forbidden_additions + read -d awk_script ./devtools/checkpatches.sh: 52: read: Illegal option -d + awk -v FOLDERS=lib drivers -v EXPRESSIONS=rte_panic\\( rte_exit\\( -v RET_ON_FAIL=1 - + report= + [ 0 -ne 0 ] -- David Marchand