From patchwork Tue Nov 14 18:59:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Morey-Chaisemartin X-Patchwork-Id: 10058137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D15E602A7 for ; Tue, 14 Nov 2017 18:59:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 004F12998C for ; Tue, 14 Nov 2017 18:59:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E970F2998D; Tue, 14 Nov 2017 18:59:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 794D929995 for ; Tue, 14 Nov 2017 18:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752436AbdKNS7a (ORCPT ); Tue, 14 Nov 2017 13:59:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:39633 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151AbdKNS7a (ORCPT ); Tue, 14 Nov 2017 13:59:30 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3E25BAB02 for ; Tue, 14 Nov 2017 18:59:29 +0000 (UTC) From: Nicolas Morey-Chaisemartin Subject: [PATCH rdma-core 2/5] buildlib: add script to dump ABI To: linux-rdma@vger.kernel.org References: <8306e0d4-3f4f-1d06-74e1-c971fc63f7b8@suse.de> Openpgp: preference=signencrypt Message-ID: <017e29bd-8799-a477-e0b6-b0eab45439ef@suse.de> Date: Tue, 14 Nov 2017 19:59:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Thunderbird/57.0 MIME-Version: 1.0 In-Reply-To: <8306e0d4-3f4f-1d06-74e1-c971fc63f7b8@suse.de> Content-Language: fr-xx-classique+reforme1990 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Builds rdma-core in -Og/Debug mode and use abi-dumper to generate 1 xml per .so.*.* file. Do not use .so file directly. Providers have no symbol exported and cause abi-dumer to exit with an error. Signed-off-by: Nicolas Morey-Chaisemartin Cc: stable@linux-rdma.org # v15 --- buildlib/gen-abi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 buildlib/gen-abi diff --git a/buildlib/gen-abi b/buildlib/gen-abi new file mode 100755 index 00000000..6dff8ddb --- /dev/null +++ b/buildlib/gen-abi @@ -0,0 +1,18 @@ +#!/bin/bash + +# Stop on error +set -e +# Echo all commands to Travis log +set -x + +mkdir build-abi +cd build-abi +CFLAGS="-g -Og" cmake -GNinja -DCMAKE_BUILD_TYPE=Debug .. +ninja + +mkdir ABI +for FILE in $(find lib -name "*.so.*.*"); do + LIB=$(basename $FILE) + MODULE_VER=$(echo $LIB | sed -e 's/.*.so\.\(.*\)/\1/') + ../buildlib/abi-checker/abi-dumper.pl -lver $MODULE_VER $FILE -o ABI/$LIB.dump +done