Skip testing deprecated bdflush in bz544960-no-cfa_ops-supplied

This commit is contained in:
Martin Cermak 2024-09-25 12:07:53 +02:00
commit cc77a00736

View file

@ -31,7 +31,13 @@
PACKAGE="systemtap"
_SCRIPTS="readpages.stp tcp.sendmsg.stp bdflush.stp"
_SCRIPTS="readpages.stp tcp.sendmsg.stp"
# The bdflush syscall had been deprecated in kernel commit
# b48c7236b13cb5ef1b5fdf744aa8841df0f7b43a. Skip testing
# it on nodern kernels (rough gate on KERN_MAJOR).
KERN_MAJOR=$(uname -r | awk -F. '{print $1}')
test $KERN_MAJOR -le 5 && _SCRIPTS="$_SCRIPTS bdflush.stp"
rlJournalStart
rlPhaseStartTest