diff options
Diffstat (limited to 'exports.stp')
-rw-r--r-- | exports.stp | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/exports.stp b/exports.stp new file mode 100644 index 0000000..c2f47ed --- /dev/null +++ b/exports.stp @@ -0,0 +1,87 @@ +global check_exp, check_rqstp_flavor + +probe module("nfsd").function("exp_pseudoroot") +{ + printf("exp_pseudoroot: rqstp %p fhp %p\n", $rqstp, $fhp); +} +probe module("nfsd").function("exp_pseudoroot").return +{ + printf("exp_pseudoroot: %s\n", nfsderror($return)); +} +/* +probe module("nfsd").function("exp_find") +{ + printf(" exp_find: clp %p fsid %d fsdiv %p\n", + $clp, $fsid_type, $fsidv); +} +probe module("nfsd").function("exp_find").return +{ + printf(" exp_find: %p\n", $return); +} +*/ +probe module("nfsd").function("rqst_exp_find") +{ + 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); +} +probe module("nfsd").function("fh_compose") +{ + printf(" fh_compose: fhp %p exp %p dentry %p ref_fh %p\n", + $fhp, $exp, $dentry, $ref_fh); +} +probe module("nfsd").function("fh_compose").return +{ + printf(" fh_compose: %s\n", nfsderror($return)); +} +probe module("nfsd").function("svc_export_lookup") +{ + printf(" svc_export_lookup: %p\n", $exp); +} +probe module("nfsd").function("svc_export_lookup").return +{ + printf(" svc_export_lookup: return %p\n", $return); + if ($return > 0) + printf(" : %s\n", + svc_export_dump($return)); +} +probe module("sunrpc").function("cache_check") +{ + printf(" cache_check: detail %p h %p rqstp %p\n", + $detail, $h, $rqstp); + printf(" : %s\n", cache_head_dump($detail, $h)); +} +probe module("sunrpc").function("cache_check").return +{ + if ($return) + printf(" cache_check: %s\n", errno_str($return)); +} +probe module("sunrpc").function("cache_make_upcall") +{ + printf(" cache_make_upcall: detail %p h %p \n", + $detail, $h); + printf(" : %s\n", cache_head_dump($detail, $h)); +} +probe module("sunrpc").function("cache_make_upcall").return +{ + if ($return) + printf(" cache_make_upcall: %s\n", errno_str($return)); +} +probe module("nfsd").function("check_nfsd_access") +{ + check_exp = $exp; + check_rqstp_flavor = $rqstp->rq_flavor; +} +probe module("nfsd").function("check_nfsd_access").return +{ + if ($return != 0) { + printf(" check_nfsd_access: %s\n", nfsderror($return)); + printf(" : rq_flavor %d %s\n", + check_rqstp_flavor, svc_export_flavors(check_exp)); + } +} +probe begin { log("starting exports probe") } +probe end { log("ending exports probe") } |