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

global nfscalls

probe begin {
	printf("Collecting data...\n")
}

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

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