]> sourceware.org Git - systemtap.git/commitdiff
Updated testsuite/buildok/fortytwo.stp for rawhide.
authorDavid Smith <dsmith@redhat.com>
Tue, 25 Jul 2017 20:07:46 +0000 (15:07 -0500)
committerDavid Smith <dsmith@redhat.com>
Tue, 25 Jul 2017 20:07:46 +0000 (15:07 -0500)
* 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

index cd4076b694a59397514bcdccc56e420c44d5d91e..fcadc370ba3d00f6559d2ae920d121fc54763c25 100755 (executable)
@@ -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:`
This page took 1.10368 seconds and 5 git commands to generate.