diff options
author | wenji <wenji> | 2007-08-22 09:42:12 +0000 |
---|---|---|
committer | wenji <wenji> | 2007-08-22 09:42:12 +0000 |
commit | 96747cf62d41217bd22535ad103e2d6c3d459495 (patch) | |
tree | 3d3fc2b3d009b30e5dc9445db2ec87ea73d30854 | |
parent | 48480f3fc6b045e5697d304196b96de45da660ad (diff) | |
download | systemtap-steved-96747cf62d41217bd22535ad103e2d6c3d459495.tar.gz systemtap-steved-96747cf62d41217bd22535ad103e2d6c3d459495.tar.xz systemtap-steved-96747cf62d41217bd22535ad103e2d6c3d459495.zip |
2007-08-22 Wenji Huang <wenji.huang@oracle.com>
* nfsd.stp (nfsd.proc?.*): Modify evaluating client_ip
with function addr_from_rqst to make it compatible in kernel>=2.6.19
(nfsd.proc4.compound,nfsd.read,nfsd.write): Fix typo.
(nfsd.unlink): Fix reference to variable iap.
-rw-r--r-- | tapset/ChangeLog | 7 | ||||
-rw-r--r-- | tapset/nfsd.stp | 36 |
2 files changed, 25 insertions, 18 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 353b195c..5d388a72 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,5 +1,12 @@ 2007-08-22 Wenji Huang <wenji.huang@oracle.com> + * nfsd.stp (nfsd.proc?.*): Modify evaluating client_ip + with function addr_from_rqst to make it compatible in kernel>=2.6.19 + (nfsd.proc4.compound,nfsd.read,nfsd.write): Fix typo. + (nfsd.unlink): Fix reference to variable iap. + +2007-08-22 Wenji Huang <wenji.huang@oracle.com> + * nfs.stp (__iov_length): Updated, Temporary here. * nfs_proc.stp (__i2n_ip_proto): Add type cast to sockaddr_in. (nfs.proc?.*): Modify evaluating count and offset. diff --git a/tapset/nfsd.stp b/tapset/nfsd.stp index 699ab17e..c5ddd77c 100644 --- a/tapset/nfsd.stp +++ b/tapset/nfsd.stp @@ -204,7 +204,7 @@ probe nfsd.proc.lookup.return = nfsd.proc2.lookup.return, probe nfsd.proc2.lookup = kernel.function("nfsd_proc_lookup") ?, module("nfsd").function("nfsd_proc_lookup") ? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 2 fh = __get_fh($argp,1) @@ -228,7 +228,7 @@ probe nfsd.proc2.lookup.return = kernel.function("nfsd_proc_lookup").return ?, probe nfsd.proc3.lookup = kernel.function("nfsd3_proc_lookup") ?, module("nfsd").function("nfsd3_proc_lookup") ? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 3 fh = __get_fh($argp,1) @@ -278,7 +278,7 @@ probe nfsd.proc.read.return = nfsd.proc2.read.return, probe nfsd.proc2.read = kernel.function("nfsd_proc_read")?, module("nfsd").function("nfsd_proc_read")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 2 fh = __get_fh($argp,3) @@ -311,7 +311,7 @@ probe nfsd.proc2.read.return = kernel.function("nfsd_proc_read").return?, probe nfsd.proc3.read = kernel.function("nfsd3_proc_read")?, module("nfsd").function("nfsd3_proc_read")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 3 fh = __get_fh($argp,4) @@ -371,7 +371,7 @@ probe nfsd.proc.write.return = nfsd.proc2.write.return, probe nfsd.proc2.write = kernel.function("nfsd_proc_write")?, module("nfsd").function("nfsd_proc_write")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 2 fh = __get_fh($argp,5) @@ -404,7 +404,7 @@ probe nfsd.proc2.write.return = kernel.function("nfsd_proc_write").return?, probe nfsd.proc3.write = kernel.function("nfsd3_proc_write")?, module("nfsd").function("nfsd3_proc_write")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 3 fh = __get_fh($argp,6) @@ -461,7 +461,7 @@ probe nfsd.proc.commit.return = nfsd.proc3.commit.return probe nfsd.proc3.commit = kernel.function("nfsd3_proc_commit")?, module("nfsd").function("nfsd3_proc_commit")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 3 fh = __get_fh($argp,7) @@ -506,7 +506,7 @@ probe nfsd.proc.create.return = nfsd.proc2.create.return, probe nfsd.proc2.create = kernel.function("nfsd_proc_create")?, module("nfsd").function("nfsd_proc_create")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 2 fh = __get_fh($argp,8) @@ -529,7 +529,7 @@ probe nfsd.proc2.create.return = kernel.function("nfsd_proc_create").return?, probe nfsd.proc3.create = kernel.function("nfsd3_proc_create")?, module("nfsd").function("nfsd3_proc_create")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 3 fh = __get_fh($argp,9) @@ -571,7 +571,7 @@ probe nfsd.proc.remove.return = nfsd.proc2.remove.return, probe nfsd.proc2.remove = kernel.function("nfsd_proc_remove")?, module("nfsd").function("nfsd_proc_remove")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 2 fh = __get_fh($argp,10) @@ -594,7 +594,7 @@ probe nfsd.proc2.remove.return = kernel.function("nfsd_proc_remove").return?, probe nfsd.proc3.remove = kernel.function("nfsd3_proc_remove")?, module("nfsd").function("nfsd3_proc_remove")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 3 fh = __get_fh($argp,11) @@ -637,7 +637,7 @@ probe nfsd.proc.rename.return = nfsd.proc2.rename.return, probe nfsd.proc2.rename = kernel.function("nfsd_proc_rename")?, module("nfsd").function("nfsd_proc_rename")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 2 fh = __get_fh($argp,12) @@ -663,7 +663,7 @@ probe nfsd.proc2.rename.return = kernel.function("nfsd_proc_rename").return?, probe nfsd.proc3.rename = kernel.function("nfsd3_proc_rename")?, module("nfsd").function("nfsd3_proc_rename")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 3 fh = __get_fh($argp,14) @@ -705,14 +705,14 @@ probe nfsd.proc.compound.return = nfsd.proc4.compound.return probe nfsd.proc4.compound = kernel.function("nfsd4_proc_compound")?, module("nfsd").function("nfsd4_proc_compound")? { - client_ip = $rqstp->rq_addr->sin_addr->s_addr + client_ip = addr_from_rqst($rqstp) proto = $rqstp->rq_prot version = 4 num = $args->opcnt op = $args->ops - name = "nfsd.proc4.cmpound" + name = "nfsd.proc4.compound" argstr = sprintf("%d",num) } @@ -816,7 +816,7 @@ probe nfsd.read = kernel.function("nfsd_read") ?, vlen = $vlen name = "nfsd.read" - argstr = sprintf("%d,%d",count,offsee) + argstr = sprintf("%d,%d",count,offset) size = count units = "bytes" @@ -854,7 +854,7 @@ probe nfsd.write = kernel.function("nfsd_write")?, vlen = $vlen name = "nfsd.write" - argstr = sprintf("%d,%d",count,offsee) + argstr = sprintf("%d,%d",count,offset) size = count units = "bytes" @@ -1027,7 +1027,7 @@ probe nfsd.unlink = kernel.function("nfsd_unlink")?, type = $type name = "nfsd.unlink" - argstr = sprintf("%s,%d",filename,iap) + argstr = sprintf("%s,%d",filename,type) } probe nfsd.unlink.return = kernel.function("nfsd_unlink").return?, |