Main index | Section 9 | Options |
#include <sys/param.h>
#include <sys/systm.h>
#include <machine/cpu.h>
On SMP systems, there will be a number of separate monotonic sequences, one for each CPU running. The value in the SMP case is selected from one of these sequences, dependent on which CPU was scheduled to service the request.
The speed and the maximum value of each counter is CPU-dependent. Some CPUs (such as the Intel 80486) do not have such a register, so get_cyclecount() on these platforms returns a (monotonic) combination of numbers represented by the structure returned by binuptime(9).
The AMD64 and Intel 64 processors use the TSC register.
GET_CYCLECOUNT (9) | March 15, 2011 |
Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.