1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
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") }
|