diff options
| author | Steve Dickson <steved@redhat.com> | 2008-01-30 07:00:23 -0500 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2008-01-30 07:00:23 -0500 |
| commit | 61f3bef75ff080363b2d4521b114b0290d28266c (patch) | |
| tree | 1ef71f33aeeeee15ad4ec95a46a6d80c596c1662 | |
| parent | fcecc6297b8679780f30e12a4d7b3f3b0a9516b6 (diff) | |
| download | systemtap-61f3bef75ff080363b2d4521b114b0290d28266c.tar.gz systemtap-61f3bef75ff080363b2d4521b114b0290d28266c.tar.xz systemtap-61f3bef75ff080363b2d4521b114b0290d28266c.zip | |
Changed exp_pseudoroot to show returning fh
| -rw-r--r-- | nfsd_fh.stp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nfsd_fh.stp b/nfsd_fh.stp index a1f0786..7c7fdbe 100644 --- a/nfsd_fh.stp +++ b/nfsd_fh.stp @@ -1,6 +1,6 @@ #!/usr/bin/env stap -global _putfh_cstate, _putrootfh_cstate +global _putfh_cstate, _putrootfh_cstate, pseudoroot_cstate probe module("nfsd").function("nfsd4_putrootfh") { @@ -16,11 +16,18 @@ probe module("nfsd").function("nfsd4_putrootfh").return } probe module("nfsd").function("exp_pseudoroot") { + /* printf("exp_pseudoroot: rqstp %p fhp %p\n", $rqstp, $fhp); + */ + pseudoroot_cstate = $fhp; } probe module("nfsd").function("exp_pseudoroot").return { - printf("exp_pseudoroot: %s\n", nfsderror($return)); + if ($return) { + printf("exp_pseudoroot: %s\n", nfsderror($return)); + } else { + printf("exp_pseudoroot: %s\n", svcfhfmt(pseudoroot_cstate)); + } } probe module("nfsd").function("nfsd4_putfh") { |
