GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GET_CYCLECOUNT (9)

NAME

get_cyclecount - get the CPU’s fast counter register contents

CONTENTS

Synopsis
Description
See Also
History
Authors

SYNOPSIS


.In sys/param.h
.In sys/systm.h
.In machine/cpu.h uint64_t get_cyclecount void

DESCRIPTION

The 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 a (monotonic) combination of numbers represented by the structure returned by binuptime(9).

The AMD64 and Intel 64 processors use the TSC register.

The IA64 processors use the AR.ITC register.

SEE ALSO

binuptime(9)

HISTORY

The get_cyclecount function first appeared in
.Fx 5.0 .

AUTHORS

This manual page was written by
.An Mark Murray Aq markm@FreeBSD.org .
Search for    or go to Top of page |  Section 9 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.