a <<< delta_timestamp writes[execname()] <<< count
The following functions provide methods to extract information about integer values.
In the output, a range of consecutive empty buckets may be replaced with a tilde (~) character. This can be controlled on the command line with -DHIST_ELISION=< num> , where < num> specifies how many empty buckets at the top and bottom of the range to print. The default is 2. A < num> of 0 removes all empty buckets. A negative < num> turns off bucket removal all together.
For example, if you specify -DHIST_ELISION=3 and the histogram has 10 consecutive empty buckets, the first 3 and last 3 empty buckets will be printed and the middle 4 empty buckets will be represented by a tilde (~).
The following is an example.
global reads
probe netdev.receive {
reads <<< length
}
probe end {
print(@hist_linear(reads, 0, 10240, 200))
}
value |-------------------------------------------------- count
0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1650
200 | 8
400 | 0
600 | 0
~
1000 | 0
1200 | 0
1400 | 1
1600 | 0
1800 | 0
The following is an example.
global reads
probe netdev.receive {
reads <<< length
}
probe end {
print(@hist_log(reads))
}
value |-------------------------------------------------- count
8 | 0
16 | 0
32 | 254
64 | 3
128 | 2
256 | 2
512 | 4
1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 16689
2048 | 0
4096 | 0