From d447e7277efcb1af134390198498339a30ad0c3b Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 25 Jul 2017 15:07:46 -0500 Subject: [PATCH] Updated testsuite/buildok/fortytwo.stp for rawhide. * testsuite/buildok/fortytwo.stp: Updated for rawhide kernels, 4.13.0-0.rc1.git4.1.fc27.x86_64, where the kernel function 'do_readv_writev' no longer exists. Instead, probe 'do_iter_readv_writev'. --- testsuite/buildok/fortytwo.stp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/testsuite/buildok/fortytwo.stp b/testsuite/buildok/fortytwo.stp index cd4076b69..fcadc370b 100755 --- a/testsuite/buildok/fortytwo.stp +++ b/testsuite/buildok/fortytwo.stp @@ -5,7 +5,19 @@ set -e fn="do_readv_writev@fs/read_write.c" -var="file" +if stap -l 'kernel.function("'$fn'")' > /dev/null; then + var="file" + echo "Function '$fn' found." +else + fn="do_iter_readv_writev@fs/read_write.c" + if stap -l 'kernel.function("'$fn'")' > /dev/null; then + var="filp" + echo "Function '$fn' found." + else + echo "Unexpected error: Can't find any function to test." + exit 1 + fi +fi fullfn=`stap $@ -wp2 -e 'probe kernel.statement("'$fn'") {}' | grep kernel | cut -f2 -d'"'` lineno=`echo $fullfn | cut -f2 -d:` -- 2.43.5