summaryrefslogtreecommitdiffstats
path: root/nfsd4_acl.stp
blob: e46403f4fc463944a608167b81cdf28ac209220b (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
50
51
52
53
54
55
56
global nfs4err

probe module("nfsd").function("nfs4_acl_new")
{
	printf("nfs4_acl_new: n %d\n", $n);
}
probe module("nfsd").function("nfs4_acl_new").return
{
	printf("nfs4_acl_new: nfs4_acl * %p \n", $return);
}
probe module("nfsd").function("nfs4_acl_get_whotype")
{
	printf("nfs4_acl_get_whotype: p %p(%s) len %d\n",
		$p, kernel_string($p), $len);
}
probe module("nfsd").function("nfs4_acl_get_whotype").return
{
	if ( $return == 0)
		printf("nfs4_acl_get_whotype: return NFS4_ACL_WHO_NAMED\n");
	if ( $return == 1)
		printf("nfs4_acl_get_whotype: return NFS4_ACL_WHO_OWNER\n");
	if ( $return == 2)
		printf("nfs4_acl_get_whotype: return NFS4_ACL_WHO_GROUP\n");
	if ( $return == 3)
		printf("nfs4_acl_get_whotype: return NFS4_ACL_WHO_EVERYONE\n");
}
probe module("nfsd").function("nfs4_acl_write_who")
{
	printf("nfs4_acl_write_who: who %d p %p(%s)\n",
		$who, $p, kernel_string($p));
}
probe module("nfsd").function("nfs4_acl_write_who").return
{
	printf("nfs4_acl_write_who: return %d\n", $return);
}
probe module("nfsd").function("idmap_name_to_id")
{
	printf("idmap_name_to_id: rqstp %d type %d name(%d) %s\n",
		$rqstp, $type, $namelen, kernel_string($name));
}
probe module("nfsd").function("idmap_name_to_id").return
{
	printf("idmap_name_to_id: return %d(%s)\n", $return, errno_str($return));
}
probe module("nfs").function("nfs4_stat_to_errno")
{
	nfs4err = $stat;
}
probe module("nfs").function("nfs4_stat_to_errno").return
{
	printf("nfs4_stat_to_errno: %s errno %d(%s)\n", 
		nfs4error(nfs4err), $return, errno_str($return));
}

probe begin { log("starting nfsd4_acl probe") }
probe end { log("ending nfsd4_acl probe") }