summaryrefslogtreecommitdiffstats
path: root/svc_export.stp
blob: eb36538390246e3ef5c86931bda8d4d77a44fc6b (plain)
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
probe module("nfsd").function("svc_export_show")
{
	printf("svc_export_show: m 0x%p cd 0x%p h 0x%p\n", $m, $cd, $h);
}
probe module("nfsd").function("svc_export_show").return
{
	if ($return)
		printf("svc_export_show: %s\n", nfsderror($return));
}

probe module("nfsd").function("export_update")
{
	printf("export_update: cnew 0x%p citem 0x%p\n", $cnew, $citem);
}

probe module("nfsd").function("svc_export_match")
{
	printf("svc_export_match: a 0x%p b 0x%p\n", $a, $b);
}
probe module("nfsd").function("svc_export_match").return
{
	printf("svc_export_match: %d\n", $return);
}
probe module("nfsd").function("svc_export_request")
{
	printf("svc_export_request: cd 0x%p h 0x%p\n", $cd, $h);
}
probe module("nfsd").function("svc_export_put")
{
	printf("svc_export_put: ref 0x%p \n", $ref);
}
probe module("nfsd").function("svc_export_parse")
{
	printf("    svc_export_parse: cd %p(%s) mlen %d\n", 
			$cd, kernel_string($cd->name), $mlen);
	printf("       %s\n", 
		svc_export_data(kernel_string($mesg)));
}
probe module("nfsd").function("svc_export_parse").return
{
	if ($return < 0) {
		printf("    svc_export_parse: error %s\n", errno_str($return));
	} else {
		printf("    svc_export_parse: count %d\n", $return);
	}
}
probe begin { log("starting svc_export probe") }
probe end { log("ending svc_export probe") }