X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=extras%2Fabi%2Fdump_abi.sh;fp=extras%2Fabi%2Fdump_abi.sh;h=60bc79e37a5a0f642b0015c5e67e0a18923a82c7;hb=7538241befdda770998d3354968214729a9fc4e4;hp=0000000000000000000000000000000000000000;hpb=5b1163c6cf674c6461cc1e0ad1211924df7af789;p=lttng-ust.git diff --git a/extras/abi/dump_abi.sh b/extras/abi/dump_abi.sh new file mode 100755 index 00000000..60bc79e3 --- /dev/null +++ b/extras/abi/dump_abi.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# SPDX-License-Identifier: GPL-2.0-only + +set -eu + +INDIR=$1 +OUTDIR=$2 + +ARGS=( + "--annotate" # Add comments to the xml output + "--no-corpus-path" # Do not put the path in the abi-corpus +) + +for lib in "${INDIR}"/liblttng-ust*.so.? +do + abidw "${ARGS[@]}" --out-file "${OUTDIR}/$(basename "$lib").xml" "$lib" + + # Clean the full paths + sed -i "s#$(pwd)/##g" "${OUTDIR}/$(basename "$lib").xml" +done +