]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce the sysclock_getsnapshot() and sysclock_snap2bintime() KPIs. The
authorlstewart <lstewart@FreeBSD.org>
Sat, 24 Dec 2011 01:32:01 +0000 (01:32 +0000)
committerlstewart <lstewart@FreeBSD.org>
Sat, 24 Dec 2011 01:32:01 +0000 (01:32 +0000)
commit1c0bb02c84b89eb2f680e27b37e58dd05abc23c1
treef6c0eaf45fcae96aeeac68d7acbad79ae3dd9c58
parent2425a92fa5a7e0049961b21fb111a4dabe00d257
Introduce the sysclock_getsnapshot() and sysclock_snap2bintime() KPIs. The
sysclock_getsnapshot() function allows the caller to obtain a snapshot of all
the system clock and timecounter state required to create time stamps at a later
point. The sysclock_snap2bintime() function converts a previously obtained
snapshot into a bintime time stamp according to the specified flags e.g. which
system clock, uptime vs absolute time, etc.

These KPIs enable useful functionality, including direct comparison of the
feedback and feed-forward system clocks and generation of multiple time stamps
with different formats from a single timecounter read.

Committed on behalf of Julien Ridoux and Darryl Veitch from the University of
Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward
Clock Synchronization Algorithms" project.

For more information, see http://www.synclab.org/radclock/

In collaboration with: Julien Ridoux (jridoux at unimelb edu au)
sys/kern/kern_ntptime.c
sys/kern/kern_tc.c
sys/sys/timeffc.h