Blame SOURCES/rhbz1657186.patch

cab4ad
commit 8bc64034509474bee3fb7996b2a9e74c8bc27281
cab4ad
Author: Frank Ch. Eigler <fche@redhat.com>
cab4ad
Date:   Fri Oct 19 17:36:04 2018 -0400
cab4ad
cab4ad
    nfsd tapset: adapt nfsd.proc4.read probe to different kernel versions
cab4ad
    
cab4ad
    Here too an if(@defined($u)) is appropriate, just like in the .write case.
cab4ad
cab4ad
diff --git a/tapset/linux/nfsd.stp b/tapset/linux/nfsd.stp
cab4ad
index 2fe9b0f..674e3e3 100644
cab4ad
--- a/tapset/linux/nfsd.stp
cab4ad
+++ b/tapset/linux/nfsd.stp
cab4ad
@@ -567,10 +567,17 @@ probe nfsd.proc4.read = kernel.function("nfsd4_read").call !,
cab4ad
 	version = 4
cab4ad
 	fh = & @nfsd4_compound_state($cstate)->current_fh
cab4ad
 
cab4ad
-	count = $read->rd_length
cab4ad
-	offset = $read->rd_offset
cab4ad
-	vec = $rqstp->rq_vec
cab4ad
-	vlen = $read->rd_vlen
cab4ad
+        if (@defined($u)) {
cab4ad
+             count = $u->read->rd_length
cab4ad
+             offset = $u->read->rd_offset
cab4ad
+             vec = $rqstp->rq_vec
cab4ad
+             vlen = $u->read->rd_vlen
cab4ad
+        } else {
cab4ad
+             count = $read->rd_length
cab4ad
+             offset = $read->rd_offset
cab4ad
+             vec = $rqstp->rq_vec
cab4ad
+             vlen = $read->rd_vlen
cab4ad
+        }
cab4ad
 
cab4ad
 	uid = __rqstp_uid($rqstp)
cab4ad
 	gid = __rqstp_gid($rqstp)
cab4ad
cab4ad
commit 4e81610ae8c233d876f378cca8374e34cc2ee0e8
cab4ad
Author: Frank Ch. Eigler <fche@redhat.com>
cab4ad
Date:   Fri Oct 19 19:31:31 2018 -0400
cab4ad
cab4ad
    nfsd tapset: adapt nfsd.proc4.commit probe to different kernel versions
cab4ad
    
cab4ad
    Here too an if(@defined($u)) is appropriate, just like in
cab4ad
    every other case.  Audited remainder.
cab4ad
cab4ad
diff --git a/tapset/linux/nfsd.stp b/tapset/linux/nfsd.stp
cab4ad
index 674e3e3..aa04f24 100644
cab4ad
--- a/tapset/linux/nfsd.stp
cab4ad
+++ b/tapset/linux/nfsd.stp
cab4ad
@@ -852,8 +852,13 @@ probe nfsd.proc4.commit = kernel.function("nfsd4_commit").call !,
cab4ad
 	proto = $rqstp->rq_prot
cab4ad
 	version = 4
cab4ad
 	fh = & @nfsd4_compound_state($cstate)->current_fh
cab4ad
-	count = $commit->co_count 
cab4ad
-	offset = $commit->co_offset 
cab4ad
+        if (@defined($u)) {
cab4ad
+	    count = $u->commit->co_count 
cab4ad
+	    offset = $u->commit->co_offset
cab4ad
+        } else {
cab4ad
+   	    count = $commit->co_count 
cab4ad
+	    offset = $commit->co_offset
cab4ad
+        }
cab4ad
 
cab4ad
 	uid = __rqstp_uid($rqstp)
cab4ad
 	gid = __rqstp_gid($rqstp)