summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2008-01-29 17:40:15 -0500
committerSteve Dickson <steved@redhat.com>2008-01-29 17:40:15 -0500
commitf389a4342a867d237a7f714915eac03a8f763f2e (patch)
treea7e8f3db4363f4f131b60a8c5b3ea1b4dfab2caa
parenta0630d519e87f5c5d851d3127085a50592bb20b4 (diff)
downloadsystemtap-f389a4342a867d237a7f714915eac03a8f763f2e.tar.gz
systemtap-f389a4342a867d237a7f714915eac03a8f763f2e.tar.xz
systemtap-f389a4342a867d237a7f714915eac03a8f763f2e.zip
Improved the output of nfsd4_putfh
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--nfsd_fh.stp16
1 files changed, 12 insertions, 4 deletions
diff --git a/nfsd_fh.stp b/nfsd_fh.stp
index ee330e0..d315869 100644
--- a/nfsd_fh.stp
+++ b/nfsd_fh.stp
@@ -1,4 +1,7 @@
#!/usr/bin/env stap
+
+global _putfh_cstate
+
probe module("nfsd").function("exp_pseudoroot")
{
printf("exp_pseudoroot: rqstp %p fhp %p\n", $rqstp, $fhp);
@@ -11,11 +14,15 @@ probe module("nfsd").function("nfsd4_putfh")
{
printf("nfsd4_putfh: rqstp %p cstate %p putfh %p\n",
$rqstp, $cstate, $putfh);
- printf(" : %s\n", cstate_pr($cstate));
+ _putfh_cstate = $cstate;
}
probe module("nfsd").function("nfsd4_putfh").return
{
- printf("nfsd4_putfh: %s\n", nfsderror($return));
+ if ($return) {
+ printf("nfsd4_putfh: %s\n", nfsderror($return));
+ } else {
+ printf("nfsd4_putfh: %s\n", cstate_pr(_putfh_cstate));
+ }
}
probe module("nfsd").function("nfsd4_getfh")
{
@@ -48,12 +55,13 @@ probe module("nfsd").function("fh_compose").return
}
probe module("nfsd").function("rqst_exp_find")
{
- printf("rqst_exp_find: rqstp %p fsid_type %d fsidv %p\n",
+ printf(" rqst_exp_find: rqstp %p fsid_type %d fsidv %p\n",
$rqstp, $fsid_type, $fsidv);
}
probe module("nfsd").function("rqst_exp_find").return
{
- printf("rqst_exp_find: %p\n", $return);
+ if ($return != 0)
+ printf(" rqst_exp_find: %p\n", $return);
}
/*
probe module("nfsd").function("exp_find_key").return