]> sourceware.org Git - systemtap.git/commitdiff
Additional PR16541 fix. Fix using @cast when nfsd is in a module.
authorDavid Smith <dsmith@redhat.com>
Mon, 10 Feb 2014 21:20:58 +0000 (15:20 -0600)
committerDavid Smith <dsmith@redhat.com>
Mon, 10 Feb 2014 21:20:58 +0000 (15:20 -0600)
* tapset/linux/nfsd.stp: For kernels where nfsd is in a module (like on
  RHEL5), fix @cast() in new __rqstp_uid() and __rqstp_gid() functions.

tapset/linux/nfsd.stp

index 5aa4eb0bdfca0786e1947bf8382454be129333ad..83765a3bf45ffc530aa344e6f4ada10340fee54e 100644 (file)
@@ -156,7 +156,7 @@ function __rqstp_uid:long(rqstp:long)
                  from_kuid_munged(&init_user_ns,
                                   ((struct svc_rqst *)STAP_ARG_rqstp)->rq_cred.cr_uid) %}
 %:
-       return @cast(rqstp, "svc_rqst")->rq_cred->cr_uid
+       return @cast(rqstp, "svc_rqst", "kernel:nfsd")->rq_cred->cr_uid
 %)
 }
 
@@ -170,7 +170,7 @@ function __rqstp_gid:long(rqstp:long)
                  from_kgid_munged(&init_user_ns,
                                   ((struct svc_rqst *)STAP_ARG_rqstp)->rq_cred.cr_gid) %}
 %:
-       return @cast(rqstp, "svc_rqst")->rq_cred->cr_gid
+       return @cast(rqstp, "svc_rqst", "kernel:nfsd")->rq_cred->cr_gid
 %)
 }
 
This page took 0.031298 seconds and 5 git commands to generate.