diff options
author | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-02-22 19:30:11 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-02-23 10:31:34 -0500 |
commit | 2acd34e160fb871e0428fac2b8a24f2b2244ee3d (patch) | |
tree | c3050a9e9c711894ea85ea34a7a2ecaf5bd385a6 | |
parent | 759d0d24791d7e7f0820d3a68017d9a43b3fb68a (diff) | |
download | libtracefs-2acd34e160fb871e0428fac2b8a24f2b2244ee3d.tar.gz |
libtracefs: Do not check for deprecated functions
tracefs_event_append_filter() and tracefs_event_verify_filter() are
deprecated, where tracefs_filter_string_append() and
tracefs_filter_string_verify() should be used instead. They are purposely
not in the man pages. Do not have the checker warn about them.
Link: https://lore.kernel.org/linux-trace-devel/20220223003012.1334741-11-rostedt@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rwxr-xr-x | check-manpages.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/check-manpages.sh b/check-manpages.sh index 33419a9..d3ec6af 100755 --- a/check-manpages.sh +++ b/check-manpages.sh @@ -37,8 +37,13 @@ for man in ${MAIN}-*.txt; do done done +DEPRECATED="*tracefs_event_append_filter* *tracefs_event_verify_filter*" + 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 [ "${DEPRECATED/\*$f\*/}" != "${DEPRECATED}" ]; then + continue; + fi if [ "$last" == "" ]; then echo echo "Missing functions from $MAIN_FILE that are in tracefs.h" |