public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Nicolas Morey-Chaisemartin
	<nicolas-PVCUbA2IIkVH1sytvemUSjhD77mM7E+b@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH rdma-core 2/5] buildlib: add script to dump ABI
Date: Wed, 15 Nov 2017 07:56:32 +0200	[thread overview]
Message-ID: <20171115055632.GR18825@mtr-leonro.local> (raw)
In-Reply-To: <8bcdf747-5613-8990-5742-8a9b6e552ac9-PVCUbA2IIkVH1sytvemUSjhD77mM7E+b@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]

On Tue, Nov 14, 2017 at 07:57:55PM +0100, Nicolas Morey-Chaisemartin wrote:
> 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.

mlx4/mlx5 do export.

Thanks

>
> Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin-IBi9RG/b67k@public.gmane.org>
> Cc: stable-Xl5UnYtxxKxKUA01WzcqbQ@public.gmane.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
> --
> 2.15.0.168.g9a51f1b30.dirty
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-11-15  5:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-14 18:55 [PATCH rdma-core 0/5] ABI consistency check Nicolas Morey-Chaisemartin
     [not found] ` <8306e0d4-3f4f-1d06-74e1-c971fc63f7b8-l3A5Bk7waGM@public.gmane.org>
2017-11-14 18:57   ` [PATCH rdma-core 2/5] buildlib: add script to dump ABI Nicolas Morey-Chaisemartin
     [not found]     ` <8bcdf747-5613-8990-5742-8a9b6e552ac9-PVCUbA2IIkVH1sytvemUSjhD77mM7E+b@public.gmane.org>
2017-11-15  5:56       ` Leon Romanovsky [this message]
     [not found]         ` <20171115055632.GR18825-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-15 17:22           ` Nicolas Morey-Chaisemartin
     [not found]             ` <b36cd702-5d8e-c116-3306-39e1a1b8aaf5-l3A5Bk7waGM@public.gmane.org>
2017-11-15 17:37               ` Leon Romanovsky
     [not found]                 ` <20171115173719.GC18825-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-15 17:52                   ` Nicolas Morey-Chaisemartin
     [not found]                     ` <9f40619b-bd97-ad6f-494b-c493dd3c3c21-l3A5Bk7waGM@public.gmane.org>
2017-11-15 19:36                       ` Jason Gunthorpe
2017-11-15 19:38                       ` Leon Romanovsky
2017-11-14 18:58   ` [PATCH rdma-core 3/5] buildlib: add script to check ABI Nicolas Morey-Chaisemartin
2017-11-14 18:58   ` [PATCH rdma-core 4/5] buildlib: run ABI check in travis-build Nicolas Morey-Chaisemartin
     [not found]     ` <866df5d4-2a54-2014-a180-1fd0dc43d0fa-l3A5Bk7waGM@public.gmane.org>
2017-11-15  5:58       ` Leon Romanovsky
     [not found]         ` <20171115055825.GS18825-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-15 17:24           ` Nicolas Morey-Chaisemartin
     [not found]             ` <a6eadf81-1557-bf9c-c163-61461bc5c271-l3A5Bk7waGM@public.gmane.org>
2017-11-15 17:34               ` Leon Romanovsky
     [not found]                 ` <20171115173453.GB18825-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-15 17:57                   ` Nicolas Morey-Chaisemartin
2017-11-14 18:58   ` [PATCH rdma-core 5/5] Documentation: update stable doc about ABI reference generation Nicolas Morey-Chaisemartin
     [not found]     ` <4bbfedda-eab7-0320-2a37-e3ecbf1093dc-l3A5Bk7waGM@public.gmane.org>
2017-11-15  5:53       ` Leon Romanovsky
     [not found]         ` <20171115055354.GQ18825-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-15 17:26           ` Nicolas Morey-Chaisemartin
2017-11-14 18:59   ` [PATCH rdma-core 2/5] buildlib: add script to dump ABI Nicolas Morey-Chaisemartin
2017-11-14 18:59   ` [PATCH rdma-core 3/5] buildlib: add script to check ABI Nicolas Morey-Chaisemartin
2017-11-14 19:40   ` [PATCH rdma-core 0/5] ABI consistency check Nicolas Morey-Chaisemartin

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=20171115055632.GR18825@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=nicolas-PVCUbA2IIkVH1sytvemUSjhD77mM7E+b@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox