Query: get_cyclecount
OS: debian
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GET_CYCLECOUNT(9) BSD Kernel Developer's Manual GET_CYCLECOUNT(9)NAMEget_cyclecount -- get the CPU's fast counter register contentsSYNOPSIS#include <sys/param.h> #include <sys/systm.h> #include <machine/cpu.h> u_int64_t get_cyclecount(void);DESCRIPTIONThe 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 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 ALSOnanotime(9)HISTORYThe get_cyclecount() function first appeared in FreeBSD 5.0.AUTHORSThis manual page was written by Mark Murray <markm@FreeBSD.org>.BSDNovember 20, 2000 BSD
Related Man Pages |
---|
cpuctl(4) - freebsd |
smp(4) - freebsd |
kvm_getpcpu(3) - freebsd |
kvm_counter_u64_fetch(3) - freebsd |
kvm_read_zpcpu(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
AIX Question |
System Information |
Get CPU speed without root permissions |
Solaris10 x86 - How to find out the CPU model and speed? |
What exactly does Kernel parameters do ? |