From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> Test to make sure that all functions listed in tracefs.h are described in libtracefs.txt man page. Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- check-manpages.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/check-manpages.sh b/check-manpages.sh index b455fecd124b..33419a92fd2f 100755 --- a/check-manpages.sh +++ b/check-manpages.sh @@ -36,3 +36,14 @@ for man in ${MAIN}-*.txt; do fi done done + +sed -ne 's/^[a-z].*[ \*]\([a-z_][a-z_]*\)(.*/\1/p' -e 's/^\([a-z_][a-z_]*\)(.*/\1/p' ../include/tracefs.h | while read f; do + if ! grep -q '\*'${f}'\*' $MAIN_FILE; then + if [ "$last" == "" ]; then + echo + echo "Missing functions from $MAIN_FILE that are in tracefs.h" + last=$f + fi + echo " ${f}" + fi +done -- 2.34.1