Rechercher une page de manuel
get_cyclecount.9freebsd
Langue: en
Version: 308907 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
BSD mandoc
NAME
get_cyclecount - get the CPU's fast counter register contentsSYNOPSIS
In sys/param.h In sys/systm.h In machine/cpu.h Ft u_int64_t Fn get_cyclecount voidDESCRIPTION
The Fn get_cyclecount function uses a register available in most modern CPUs to return a value that is monotonically increasing inside each CPU.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 Fn get_cyclecount on these platforms returns the number of nanoseconds represented by the structure returned by nanotime(9).
The Pentium processors all use the TSC register.
The Alpha processors use the PCC register.
The IA64 processors use the AR.ITC register.
SEE ALSO
nanotime(9)HISTORY
The Fn get_cyclecount function first appeared in Fx 5.0 .AUTHORS
This manual page was written by An Mark Murray Aq markm@FreeBSD.org .Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre