Skip to content

Commit

Permalink
Merge pull request #5899 from grom72/api-from-link-file
Browse files Browse the repository at this point in the history
common: generate public API list based on linker file
  • Loading branch information
janekmi authored Nov 7, 2023
2 parents 7659a10 + e0ae1e2 commit 1056bb9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions utils/call_stacks_analysis/api-from-link-file.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1056bb9

Please sign in to comment.