Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/clock-bound
/ functions
Functions
1,214 in github.com/aws/clock-bound
⨍
Functions
1,214
◇
Types & classes
277
↓ 6 callers
Function
fs_try_exists
Tests to see if the file exists.
clock-bound/src/daemon/io/phc.rs:618
↓ 6 callers
Method
handle_disruption
Handle a clock disruption event This clears the internal buffer and leaves a marker that sender has handled it.
clock-bound/src/daemon/async_ring_buffer.rs:100
↓ 6 callers
Method
into_network_endian
Convert to network endian representation
clock-bound/src/daemon/io/ntp/packet/short.rs:61
↓ 6 callers
Method
len
Returns the number of values in the buffer
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:57
↓ 6 callers
Method
len
get the length
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/estimate.rs:83
↓ 6 callers
Method
oscillator_estimate_to_true_duration
Calculate a duration in the "True Time" domain for an estimated duration in oscillator time domain - `estimate` is the estimated time after the start
clock-bound-ff-tester/src/simulation/oscillator.rs:496
↓ 6 callers
Method
phase_correction
(mut phase_correction: Duration)
clock-bound/src/daemon/time/timex.rs:167
↓ 6 callers
Method
set_to_none
Set the clock source to unsynchronized state
clock-bound/src/daemon/selected_clock.rs:70
↓ 6 callers
Method
set_to_phc
Set the clock source to PHC
clock-bound/src/daemon/selected_clock.rs:53
↓ 6 callers
Method
spawn_all
Spawns all io tasks which have been initialized. This function will spawn all initialized io tasks. If a task is not initialized it will be skipped.
clock-bound/src/daemon/io.rs:276
↓ 6 callers
Method
to_boxed_delay
(self)
clock-bound-ff-tester/src/bin/scenario_generator.rs:33
↓ 6 callers
Function
valid_series
()
clock-bound-ff-tester/src/simulation/ntp/series.rs:612
↓ 6 callers
Method
write
(&mut self, ceb: &ClockErrorBound)
clock-bound/src/daemon/clock_state/clock_state_writer.rs:33
↓ 5 callers
Function
calculate_duration_seconds
Helper function to calculate the time interval between two timestamps held in TimeSpecs.
examples/client/rust/src/main.rs:79
↓ 5 callers
Method
clear
Clears the buffer
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:77
↓ 5 callers
Function
create_test_clock_parameters
( clock_error_bound_nanos: i128, tsc_count: i128, time_nanos: i128, )
clock-bound/src/daemon/clock_state/clock_state_writer.rs:265
↓ 5 callers
Method
frequencies
(&self)
clock-bound-ff-tester/src/simulation/oscillator.rs:328
↓ 5 callers
Method
get_start_time
Get the start time of the test, which is needed in order to estimate how much the clock has been adjusted at some future `Instant`.
test/clock-bound-adjust-clock-test/src/adjust_clock_test.rs:138
↓ 5 callers
Function
measure_polling_rate
Measure the polling rate over a given period.
test/link-local/src/main.rs:153
↓ 5 callers
Method
more_accurate_than
Compare another `ClockParameter` Returns true if `self` is more accurate than `rhs` clock parameters # Parameters - `rhs`: the other `ClockParameter
clock-bound/src/daemon/clock_parameters.rs:40
↓ 5 callers
Method
now
Read the current time, but with a bound on accuracy and a status. Returns a pair of (earliest, latest) timespec between which current time exists. Th
clock-bound/src/client.rs:92
↓ 5 callers
Method
ntp_adjtime
(&self, tx: &mut Timex)
clock-bound/src/daemon/clock_state/clock_adjust/ntp_adjtime.rs:25
↓ 5 callers
Method
period_err
Get the oscillator period error as a floating point value.
clock-bound/src/shm.rs:710
↓ 5 callers
Method
phc
(&self)
clock-bound-ff-tester/src/events/v1.rs:81
↓ 5 callers
Method
reverse_approximate
This function is NOT reliable for frequency
clock-bound-ff-tester/src/simulation/interpolation.rs:117
↓ 5 callers
Method
run
`PHC` task runner. Performs periodic sampling of the PHC IO source until a control event is received. # Panics Function will panic if not called wit
clock-bound/src/daemon/io/phc.rs:539
↓ 5 callers
Method
sample
(&self, rng: &mut R)
clock-bound-ff-tester/src/simulation/stats/gamma.rs:31
↓ 5 callers
Method
set
(&self, source: ClockSource, stratum: Stratum)
clock-bound/src/daemon/selected_clock.rs:101
↓ 5 callers
Method
set_to_vmclock
Set the clock source to VMClock
clock-bound/src/daemon/selected_clock.rs:75
↓ 5 callers
Method
tsc_post
`tsc_post` getter
clock-bound/src/daemon/event/ntp.rs:62
↓ 5 callers
Method
tsc_pre
`tsc_pre` getter
clock-bound/src/daemon/event/ntp.rs:57
↓ 5 callers
Function
write_vmclock_content
(file: &mut File, vmclock_content: &VMClockContent)
clock-bound/src/daemon/io/vmclock.rs:246
↓ 4 callers
Method
add
(self, rhs: Diff<T>)
clock-bound/src/daemon/time/inner.rs:153
↓ 4 callers
Method
as_nanos_trunc
Returns the total number of nanoseconds, truncated
clock-bound/src/daemon/time/inner.rs:301
↓ 4 callers
Method
calculate_period
Calculate a period by using 2 PHC events using tsc midpoints PHC reads are characterized in ClockBound with each read having - `tsc_pre`: The TSC rea
clock-bound/src/daemon/event/phc.rs:83
↓ 4 callers
Method
clamp
(self, min: Self, max: Self)
clock-bound/src/daemon/time/tsc.rs:358
↓ 4 callers
Method
clock_frequency
Clock Frequency
clock-bound-ff-tester/src/events/v1/oscillator.rs:67
↓ 4 callers
Function
clockbound_now
( ctx: *mut clockbound_ctx, output: *mut clockbound_now_result, err: *mut clockbound_err, )
clock-bound-ffi/src/lib.rs:312
↓ 4 callers
Function
create_timex_with_time
Helper function to create a Timex with custom time and status values
clock-bound/src/daemon/time/timex.rs:576
↓ 4 callers
Method
disruption_marker
Take a snapshot of the VMClock shared memory segment and extract the disruption marker. Note that None is returned if no SHM reader is present. # Er
clock-bound/src/client.rs:218
↓ 4 callers
Function
emit_logs
(data: T)
test/clock-bound-phc-offset/src/main.rs:26
↓ 4 callers
Method
feed_ntp
(&mut self, event: &Event)
clock-bound-ff-tester/src/sim_ll.rs:49
↓ 4 callers
Function
format_clock_status
(clock_status: &ClockStatus)
test/clock-bound-vmclock-client-test/src/main.rs:49
↓ 4 callers
Function
format_clock_status
(clock_status: &ClockStatus)
examples/client/rust/src/main.rs:69
↓ 4 callers
Method
generate
(&mut self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/vmclock.rs:167
↓ 4 callers
Method
generate
(&mut self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/phc/variable_delay_source.rs:146
↓ 4 callers
Method
generate
(&mut self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/series.rs:492
↓ 4 callers
Function
get_pci_slot_name
Gets the PCI slot name for a given network interface name. # Arguments `uevent_file_path` - The path of the uevent file where we lookup the `PCI_SLO
clock-bound/src/daemon/io/phc.rs:704
↓ 4 callers
Method
get_time
Retrieves a timestamp from the PHC device. # Errors Returns an error if the PTP system call fails.
test/clock-bound-phc-offset/src/phc.rs:110
↓ 4 callers
Method
iter
Returns an iterator of events from oldest to newest
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:85
↓ 4 callers
Method
offset
(&self)
clock-bound/src/daemon/time/inner.rs:48
↓ 4 callers
Method
period
Get the oscillator period as a floating point value in seconds.
clock-bound/src/shm.rs:702
↓ 4 callers
Function
print_clockbound_err
* Helper function to print out errors returned by libclockbound. */
examples/client/c/src/clockbound_now.c:56
↓ 4 callers
Function
print_error
(detail: &str, error: &ClockBoundError)
examples/client/rust/src/main.rs:65
↓ 4 callers
Method
read
(&self)
clock-bound/src/daemon/io/phc.rs:915
↓ 4 callers
Function
read_timestamp_counter_begin
()
clock-bound/src/shm/tsc.rs:30
↓ 4 callers
Function
read_timestamp_counter_begin
()
clock-bound/src/daemon/io/tsc.rs:30
↓ 4 callers
Method
rtt_threshold_multiplier
(&self)
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:104
↓ 4 callers
Method
snapshot
(&mut self)
clock-bound/src/shm/reader.rs:307
↓ 4 callers
Method
start_time
Start Time
clock-bound-ff-tester/src/events/v1/oscillator.rs:57
↓ 4 callers
Method
time
Read the given `time` from the underlying `timex`. The kernel generally returns this with the time set to the current `CLOCK_REALTIME` reading. Notab
clock-bound/src/daemon/time/timex.rs:38
↓ 4 callers
Function
timespec_to_nsecs
(timespec: TimeSpec)
test/clock-bound-client-generic/src/lib.rs:56
↓ 4 callers
Method
to_bits
Construct network bits
clock-bound/src/daemon/io/ntp/packet/header.rs:44
↓ 4 callers
Method
to_secs_f64
Convert to seconds
clock-bound/src/daemon/io/ntp/packet/short.rs:36
↓ 4 callers
Method
to_utc_datetime
Convert to UTC datetime
clock-bound/src/daemon/io/ntp/packet/timestamp.rs:77
↓ 4 callers
Method
transition_to_running
Changes the state to `Running` and returns the previous state.
clock-bound/src/daemon/io.rs:442
↓ 4 callers
Method
update
Compare an input `ClockParameters` against the current best Returns `Some` if the new value is more accurate than the current best. None otherwise.
clock-bound/src/daemon/clock_sync_algorithm/selector.rs:35
↓ 4 callers
Method
write_shm0
Write out to the ClockBound daemon shared memory segment shm0. Writes the latest supported layout version (V2) of the shared memory segment.
clock-bound/src/daemon/clock_state/clock_state_writer.rs:179
↓ 4 callers
Function
write_vmclock_content
(file: &mut File, vmclock_content: &VMClockContent)
clock-bound/src/vmclock/shm_reader.rs:375
↓ 3 callers
Method
apply_phase_correction
Applies a phase correction to `CLOCK_REALTIME`. # Errors `NtpAdjTimeError::Failure` if `ntp_adjtime` returns -1, meaning the system call failed, alon
clock-bound/src/daemon/clock_state/clock_adjust/ntp_adjtime.rs:127
↓ 3 callers
Method
as_ref
(&self)
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/estimate.rs:187
↓ 3 callers
Method
calculate_ntp_event_timestamps
Return all of the NTP timestamps for an event given an oscillator model. Useful if not using this struct as a generator, but as a primitive building
clock-bound-ff-tester/src/simulation/ntp/variable_network_delay_source.rs:130
↓ 3 callers
Method
calculate_offset
Calculate offset using the uncorrected clock Offset is positive if the client is ahead of the reference clock
clock-bound/src/daemon/event/phc.rs:154
↓ 3 callers
Method
calculate_period_with_error
Calculate the period along with the error in the period estimation When calculating the period, the error in the measurement has a direct relationshi
clock-bound/src/daemon/event/phc.rs:101
↓ 3 callers
Method
calculate_phc_event_timestamps
( &self, oscillator_estimated_send_delay: EstimateDuration, oscillator: &FullModel,
clock-bound-ff-tester/src/simulation/phc/round_trip_delays.rs:19
↓ 3 callers
Method
calculate_phc_event_timestamps
Return all of the PHC timestamps for an event given an oscillator model Useful if not using this struct as a generator, but as a primitive building b
clock-bound-ff-tester/src/simulation/phc/variable_delay_source.rs:125
↓ 3 callers
Function
clockbound_close
( ctx: *mut clockbound_ctx, err: *mut clockbound_err, )
clock-bound-ffi/src/lib.rs:276
↓ 3 callers
Function
clockbound_open_with
( clockbound_shm_path: *const c_char, vmclock_shm_path: *const c_char, err: *mut clockbound_err, )
clock-bound-ffi/src/lib.rs:202
↓ 3 callers
Method
create_link_local
Initializes the IO task for sampling the Link Local NTP source. # Panics - If not called within the `tokio` runtime. - If socket binding fails.
clock-bound/src/daemon/io.rs:90
↓ 3 callers
Method
create_vmclock
Initializes the IO task for sampling the VMClock shared memory file. A VMClock object will not be created if the daemon is running on a unsupported i
clock-bound/src/daemon/io.rs:207
↓ 3 callers
Function
deserialize_oscillator
(path: &PathBuf)
clock-bound-ff-tester/src/bin/scenario_generator.rs:298
↓ 3 callers
Method
emit_bytes
Emit packet into bytes ## Panics Panics if buffer is smaller than total packet size
clock-bound/src/daemon/io/ntp/packet.rs:166
↓ 3 callers
Method
expunge_old
Purge undesired values Removes values from the buffers that: - Are before a certain TSC - are greater than a specified rtt
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:162
↓ 3 callers
Method
feed_repro
wrapper around feed_inner that emits reproducibility
clock-bound/src/daemon/clock_sync_algorithm.rs:133
↓ 3 callers
Method
generate
(&mut self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/variable_network_delay_source.rs:146
↓ 3 callers
Method
generate
(&mut self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/perfect.rs:126
↓ 3 callers
Method
get
Get version as u8
clock-bound/src/daemon/io/ntp/packet/header.rs:145
↓ 3 callers
Function
get_ptp_device_name_from_uevent_file
Gets the PTP device name from the given `uevent_file_path`. # Arguments `uevent_file_path` - The path of the uevent file where we lookup DEVNAME.
clock-bound/src/daemon/io/phc.rs:773
↓ 3 callers
Function
get_sample_clock_parameters
()
clock-bound/src/daemon/clock_state.rs:295
↓ 3 callers
Method
get_time_and_bound_and_status
( &mut self, )
test/clock-bound-client-generic/src/lib.rs:163
↓ 3 callers
Method
get_with_client_stratum
Get the current clock source and the stratum of this client Returns a tuple of (`ClockSource`, `Stratum`) representing the current state. The `Stratu
clock-bound/src/daemon/selected_clock.rs:42
↓ 3 callers
Method
handle_clock_parameters_shm0
Handles `ClockParameters` passed out from the `ClockSyncAlgorithm` selector for SHM0 (`ClockErrorBoundV2`) # Panics Panics if error bound calculated
clock-bound/src/daemon/clock_state/clock_state_writer.rs:106
↓ 3 callers
Function
is_ena_network_interface
Inspects the given uevent file for a network interface and determines if the corresponding driver is "ena", which is the Amazon elastic network adapte
clock-bound/src/daemon/io/phc.rs:675
↓ 3 callers
Method
iter
Returns an iterator of events from oldest to newest
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/estimate.rs:93
↓ 3 callers
Method
parse
parse from bits
clock-bound/src/daemon/io/ntp/packet/header.rs:23
↓ 3 callers
Function
perfect_symmetric
Generate a perfect scenario with no ambiguity Perfect means: - The TSC oscillator does not deviate from the expected clock frequency (no noise nor sy
clock-bound-ff-tester/src/sim_ll.rs:60
↓ 3 callers
Function
print_clockbound_err
* Helper function to print out errors returned by libclockbound. */
examples/client/c/src/clockbound_loop_forever.c:55
↓ 3 callers
Function
print_error
(detail: &str, error: &ClockBoundError)
test/clock-bound-vmclock-client-test/src/main.rs:45
↓ 3 callers
Function
read_timestamp_counter_end
()
clock-bound/src/daemon/io/tsc.rs:16
↓ 3 callers
Method
recv
(&self)
clock-bound/src/daemon/async_ring_buffer.rs:157
← previous
next →
101–200 of 1,214, ranked by callers