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 4B9DBA052A; Fri, 10 Jul 2020 12:58:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B28B1DB41; Fri, 10 Jul 2020 12:58:22 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 916811DB19 for ; Fri, 10 Jul 2020 12:58:21 +0200 (CEST) Received: from [2605:a601:a627:ca00:88f6:82e4:5f1a:31bb] (helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1jtqjN-00058A-7n; Fri, 10 Jul 2020 06:58:19 -0400 Date: Fri, 10 Jul 2020 06:58:07 -0400 From: Neil Horman To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, dodji@redhat.com, Ray Kinsella Message-ID: <20200710105807.GA2203594@hmswarspite.think-freely.org> References: <20200708102212.3311-1-david.marchand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200708102212.3311-1-david.marchand@redhat.com> X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: Re: [dpdk-dev] [PATCH] devtools: give some hints for ABI errors 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 Wed, Jul 08, 2020 at 12:22:12PM +0200, David Marchand wrote: > abidiff can provide some more information about the ABI difference it > detected. > In all cases, a discussion on the mailing must happen but we can give > some hints to know if this is a problem with the script calling abidiff, > a potential ABI breakage or an unambiguous ABI breakage. > > Signed-off-by: David Marchand > --- > devtools/check-abi.sh | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) > > diff --git a/devtools/check-abi.sh b/devtools/check-abi.sh > index e17fedbd9f..521e2cce7c 100755 > --- a/devtools/check-abi.sh > +++ b/devtools/check-abi.sh > @@ -50,10 +50,22 @@ for dump in $(find $refdir -name "*.dump"); do > error=1 > continue > fi > - if ! abidiff $ABIDIFF_OPTIONS $dump $dump2; then > + abidiff $ABIDIFF_OPTIONS $dump $dump2 || { > + abiret=$? > echo "Error: ABI issue reported for 'abidiff $ABIDIFF_OPTIONS $dump $dump2'" > error=1 > - fi > + echo > + if [ $(($abiret & 3)) != 0 ]; then > + echo "ABIDIFF_ERROR|ABIDIFF_USAGE_ERROR, please report this to dev@dpdk.org." > + fi > + if [ $(($abiret & 4)) != 0 ]; then > + echo "ABIDIFF_ABI_CHANGE, this change requires a review (abidiff flagged this as a potential issue)." > + fi > + if [ $(($abiret & 8)) != 0 ]; then > + echo "ABIDIFF_ABI_INCOMPATIBLE_CHANGE, this change breaks the ABI." > + fi > + echo > + } > done > > [ -z "$error" ] || [ -n "$warnonly" ] > -- > 2.23.0 > > this looks pretty reasonable to me, sure. Acked-by: Neil Horman