diff --git a/utils/call_stacks_analysis/api-from-link-file.sh b/utils/call_stacks_analysis/api-from-link-file.sh new file mode 100755 index 00000000000..46edc789350 --- /dev/null +++ b/utils/call_stacks_analysis/api-from-link-file.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2023, Intel Corporation +# +# +# Generate a list of all libpmem and libpmemobj public API functions. +# The script shall be run from the main PMDK folder. +# + +grep ";" src/libpmem/libpmem.link.in src/libpmemobj/libpmemobj.link.in | \ + grep -v -e'*' -e'}' -e'_pobj_cache' | \ + gawk -F "[;\t]" '{ print $3 }' | sort | uniq > $(dirname "$0")/api.txt