1The following is an example of the readdist.d script,
2
3
4Here the readdist.d script is run for a few seconds, then Ctrl-C is hit,
5
6   # readdist.d
7   dtrace: description 'sysinfo:::readch ' matched 4 probes
8   ^C
9   [...]
10     gnome-terminal
11              value  ------------- Distribution ------------- count
12                 16 |                                         0
13                 32 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   15
14                 64 |@@@                                      1
15                128 |                                         0
16
17     Xorg
18              value  ------------- Distribution ------------- count
19                 -1 |                                         0
20                  0 |@@@@@@@@@@@@@@@@@@@                      26
21                  1 |                                         0
22                  2 |                                         0
23                  4 |                                         0
24                  8 |@@@@                                     6
25                 16 |@                                        2
26                 32 |@                                        2
27                 64 |                                         0
28                128 |@@@@@@@@                                 11
29                256 |@@@                                      4
30                512 |                                         0
31
32This allows us to understand the read behaviour of each process. The
33Xorg command has executed 26 reads that returned 0 bytes, through
34to 4 reads that were at least 256 bytes (up to 511).
35
36