]> sourceware.org Git - systemtap.git/commitdiff
Fix PR18856 by making nfsd.close optional.
authorDavid Smith <dsmith@redhat.com>
Thu, 20 Aug 2015 16:27:53 +0000 (11:27 -0500)
committerDavid Smith <dsmith@redhat.com>
Thu, 20 Aug 2015 16:27:53 +0000 (11:27 -0500)
* tapset/linux/nfsd.stp: Make nfsd.close optional in nfsd.entries (and add
  it optionally to nfsd.return), since the underlying probe point no
  longer exists in kernels 4.2+. Also add nfsd.proc.commit.return to
  nfsd.proc.return (to match nfsd.proc).
* testsuite/buildok/nfsd-detailed.stp: Make nfsd.close tests optional.

tapset/linux/nfsd.stp
testsuite/buildok/nfsd-detailed.stp

index 7aebb9c084ffe819031a5f716b2762fe5002f9cd..71956a166cdc5f3907dc2095544e3809776f9911 100644 (file)
@@ -211,6 +211,7 @@ probe nfsd.proc.entries = nfsd.proc.lookup,
 probe nfsd.proc.return = nfsd.proc.lookup.return,
                          nfsd.proc.read.return,
                          nfsd.proc.write.return,
+                         nfsd.proc.commit.return,
                          nfsd.proc.remove.return,
                          nfsd.proc.rename.return,
                          nfsd.proc.create.return
@@ -1064,7 +1065,7 @@ probe nfsd.entries = nfsd.open,
                      nfsd.createv3,
                      nfsd.unlink,
                      nfsd.rename,
-                     nfsd.close
+                     nfsd.close ?
 {}
 
 probe nfsd.return = nfsd.open.return,
@@ -1075,7 +1076,8 @@ probe nfsd.return = nfsd.open.return,
                     nfsd.create.return,
                     nfsd.createv3.return,
                     nfsd.unlink.return,
-                    nfsd.rename.return
+                    nfsd.rename.return,
+                   nfsd.close.return ?
 {}
 
 /**
@@ -1113,6 +1115,8 @@ probe nfsd.open.return = kernel.function("nfsd_open").return !,
  * probe nfsd.close - NFS server closing a file for client
  *
  * @filename: file name
+ *
+ * This probe point does not exist in kernels starting with 4.2.
  */
 probe nfsd.close = __nfsd.call_close ?, __nfsd.inlined_close ?
 {
index 627f3a281a9a3b7a09567c886073ca70a685d551..f86207991b62696993f52e69f46ffa012716b1b3 100755 (executable)
@@ -229,12 +229,12 @@ probe nfsd.open.return
 # nfsd.close tests
 #
 
-probe nfsd.close
+probe nfsd.close ?
 {
        printf("%s(%s)\n", name, argstr)
        printf("%s\n", client_ip)
 }
-probe nfsd.close.return
+probe nfsd.close.return ?
 {
        printf("%s(%s)\n", name, retstr)
 }
This page took 0.035123 seconds and 5 git commands to generate.