xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/rwbbypid_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the rwbbypid.d script,
2
3
4Here we run it for a few seconds then hit Ctrl-C,
5
6   # rwbbypid.d
7   Tracing... Hit Ctrl-C to end.
8   ^C
9      PID CMD                       DIR            BYTES
10    20347 bash                        R               22
11    11053 dtrace                      W               32
12     1532 Xorg                        W               64
13    20317 sshd                        R               86
14    20347 bash                        W               87
15    20317 sshd                        W              137
16     1659 mozilla-bin                 R              213
17    20334 sshd                        R             1232
18    20334 sshd                        W             1282
19    11054 cp                          W            18652
20    11054 cp                          R            18652
21     1532 Xorg                        R            51112
22     1659 mozilla-bin                 W            51261
23
24In the above output, we can see that mozilla-bin with PID 1659 has written
2551261 bytes, while Xorg has read 51112 bytes.
26
27