xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Examples/modcalls_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is an example of the modcalls.d oneliner,
2
3
4Here we run it for a few seconds then hit Ctrl-C,
5
6   # modcalls.d
7   dtrace: script './modcalls.d' matched 18437 probes
8   ^C
9
10     ptm                                                               2
11     mntfs                                                             2
12     pool                                                              2
13     kcf                                                               4
14     pts                                                               5
15     portfs                                                            6
16     pset                                                              6
17     ttcompat                                                          9
18     ptem                                                              9
19     devfs                                                            13
20     ipf                                                              15
21     namefs                                                           20
22     ctfs                                                             22
23     procfs                                                           22
24     ldterm                                                           23
25     ipgpc                                                            48
26     sockfs                                                           58
27     flowacct                                                         69
28     ata                                                              70
29     gld                                                              75
30     rtls                                                             76
31     specfs                                                           83
32     ip                                                              201
33     uhci                                                            294
34     TS                                                              333
35     tmpfs                                                           694
36     doorfs                                                          897
37     ufs                                                            1329
38     uppc                                                           5617
39     unix                                                          49794
40     genunix                                                       53445
41
42The output lists kernel modules, and the number of function calls for
43each module. For example, "rtls" - the network driver, called 76 functions.
44
45This script may be useful to determine whether drivers are "thinking" when
46troubleshooting driver issues.
47
48