summaryrefslogtreecommitdiffstats
path: root/top-nfsv4calls.stp
blob: c9c7713ab95b7579cdc45eb38655a03d77c21d89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env stap

global nfscalls

probe begin {
	printf("Collecting top NFSv4 procs...\n")
}

probe kernel.function("*@fs/nfs/*.c") ?,
      module("nfsv4").function("*@fs/nfs/*.c") ?
{
	nfscalls[probefunc()]++
}

probe end {
	printf("Collating data...\n");
	foreach (name in nfscalls- limit 20)
		printf("%10d %s\n", nfscalls[name], name)
}