xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/fddist_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the fddist command,
2
3
4Here fddist is run for a few seconds on an idle workstation,
5
6   Tracing reads and writes... Hit Ctrl-C to end.
7   ^C
8   EXEC: dtrace           PID: 3288
9
10              value  ------------- Distribution ------------- count
11                  0 |                                         0
12                  1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
13                  2 |                                         0
14
15   EXEC: mozilla-bin      PID: 1659
16
17              value  ------------- Distribution ------------- count
18                  3 |                                         0
19                  4 |@@@@@@@@@@                               28
20                  5 |                                         0
21                  6 |@@@@@@@@@@@@@@@                          40
22                  7 |@@@@@@@@@@@@@@@                          40
23                  8 |                                         0
24
25   EXEC: Xorg             PID: 1532
26
27              value  ------------- Distribution ------------- count
28                 22 |                                         0
29                 23 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 57
30                 24 |                                         0
31
32The above displays the usage pattern for process file descriptors.
33We can see the Xorg process (PID 1532) has made 57 reads or writes to
34it's file descriptor 23.
35
36The pfiles(1) command can be used to help determine what file
37descriptor 23 actually is.
38
39