MCPcopy Create free account

hub / github.com/aws/clock-bound / functions

Functions1,214 in github.com/aws/clock-bound

↓ 1 callersMethodcalculate_offset
Calculate offset using the uncorrected clock Offset is positive if the client is ahead of the server
clock-bound/src/daemon/event/ntp.rs:182
↓ 1 callersMethodcalculate_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/ntp.rs:115
↓ 1 callersMethodclock_disruption_receiver
Creates a new [`watch::Receiver`] connected to the clock distribution watch [`watch::Sender`].
clock-bound/src/daemon/io.rs:268
↓ 1 callersFunctionclockbound_open
(err: *mut clockbound_err)
clock-bound-ffi/src/lib.rs:176
↓ 1 callersMethodconvert_to_oscillator
Convert back to an [`Oscillator`] This is helpful for the data collector to capture TSC+System Clock values and convert back into something that is s
clock-bound-ff-tester/src/simulation/oscillator.rs:560
↓ 1 callersFunctioncreate_mock_event
(source_id: &str)
clock-bound-ff-tester/src/simulation/ntp/multi_source.rs:253
↓ 1 callersMethodcurrent
Get the current best clock parameters
clock-bound/src/daemon/clock_sync_algorithm/selector.rs:72
↓ 1 callersFunctiondetermine_clock_error_bound_v3_status
( #[case] clock_params_age: Duration, #[case] expected_clock_error_bound_v3_status: ClockStatu
clock-bound/src/daemon/clock_state.rs:561
↓ 1 callersMethoddevice_path
Getter for `device_path`
clock-bound/src/daemon/io/phc.rs:206
↓ 1 callersFunctionduration
* Helper function to calculate a time interval between two timestamps held in a struct timespec. */
examples/client/c/src/clockbound_now.c:81
↓ 1 callersMethodexpose
Expose a mutable reference to the inner `libc::timex`.
clock-bound/src/daemon/time/timex.rs:25
↓ 1 callersMethodfeed_inner
Convenience function to allow for easy instrumenting
clock-bound/src/daemon/clock_sync_algorithm.rs:109
↓ 1 callersMethodfeed_internal_buffers
(&mut self, event: event::Phc)
clock-bound/src/daemon/clock_sync_algorithm/ff/phc.rs:206
↓ 1 callersMethodfeed_internal_buffers
(&mut self, event: event::Ntp)
clock-bound/src/daemon/clock_sync_algorithm/ff/ntp.rs:205
↓ 1 callersMethodfield_type
Returns the NTP extension Field Type as defined in RFC 5905 A 16-bit value that uniquely identifies the specific extension field and its function #
clock-bound/src/daemon/io/ntp/packet/extension.rs:64
↓ 1 callersFunctionformat_clock_status
* Helper function to convert clock status codes into a human readable version. */
examples/client/c/src/clockbound_loop_forever.c:15
↓ 1 callersFunctionformat_clock_status
* Helper function to convert clock status codes into a human readable version. */
examples/client/c/src/clockbound_now.c:16
↓ 1 callersMethodfreq
Reads the given `freq` from the underlying `timex`. In struct timex, freq, ppsfreq, and stabil are ppm (parts per million) with a 16-bit fractional p
clock-bound/src/daemon/time/timex.rs:58
↓ 1 callersMethodgenerate
(&mut self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/dispersion_increase_linear.rs:275
↓ 1 callersMethodgenerate_round_trip_delays
( &self, rng: &mut rand_chacha::ChaCha12Rng, )
clock-bound-ff-tester/src/simulation/phc/round_trip_delays.rs:69
↓ 1 callersFunctiongenerate_selected_clock_combos
()
test/link-local/src/main.rs:236
↓ 1 callersFunctiongenerate_selected_clock_combos
()
test/ntp-source/src/main.rs:143
↓ 1 callersMethodgenerators
Returns a reference to all underlying generators This allows inspection of the component generators without modifying them.
clock-bound-ff-tester/src/simulation/ntp/multi_source.rs:25
↓ 1 callersMethodget_aggregate_stream
Creates an aggregated stream of results from all `SourceIO` component `Receivers`.
clock-bound/src/daemon/receiver_stream.rs:59
↓ 1 callersMethodget_clock_realtime_status
Helper to find out if `CLOCK_REALTIME` is now reliable... Any initial states can be considered unreliable, since we have not corrected or been able to
clock-bound/src/daemon/clock_state/clock_adjust.rs:98
↓ 1 callersFunctionget_network_interfaces
Gets a list of network interface names on the host by inspecting the files under the path "/sys/class/net/".
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:260
↓ 1 callersMethodget_next_round_trip_delays
Gets the round trip delay components for the next NTP event Retrieves forward, backward and server delay values for the next poll time by interpolati
clock-bound-ff-tester/src/simulation/ntp/series.rs:258
↓ 1 callersFunctionget_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
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:329
↓ 1 callersFunctionget_phc_clock_error_bound_sysfs_path
Gets the PHC Error Bound sysfs file path given a PCI slot name. # Arguments `pci_slot_name` - The PCI slot name to use for constructing and locating
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:447
↓ 1 callersFunctionget_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.
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:398
↓ 1 callersFunctionget_ptp_device_path
Gets the PTP device path for a particular PTP device name. # Arguments `ptp_device_name` - The network interface to lookup the PHC error bound path
clock-bound/src/daemon/io/phc.rs:804
↓ 1 callersFunctionget_ptp_device_path
Gets the PTP device path for a particular PTP device name. # Arguments `ptp_device_name` - The network interface to lookup the PHC error bound path
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:427
↓ 1 callersFunctionget_ptp_uevent_file_paths_for_pci_slot
Gets the absolute file paths of the uevent files for PTP devices, given the PCI slot name that corresponds to the ENA network interface. File paths a
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:361
↓ 1 callersFunctionget_uevent_file_path_for_network_interface
Gets the uevent file path for a particular network interface.
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:289
↓ 1 callersMethodhandle_disruption
Handle a clock disruption event Call this function after the system detects a VMClock disruption event. It will go through and clear the state (like
clock-bound/src/daemon/clock_state/clock_state_writer.rs:132
↓ 1 callersMethodhandle_disruption
Clear inner state during a disruption event
clock-bound/src/daemon/clock_sync_algorithm/selector.rs:63
↓ 1 callersMethodhandle_disruption
Clear the internal buffer
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:95
↓ 1 callersMethodhandle_disruption
Clear the internal buffer
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/estimate.rs:103
↓ 1 callersMethodhandle_disruption_receiver
(&mut self)
clock-bound/src/daemon/async_ring_buffer.rs:258
↓ 1 callersMethodhandle_disruption_sender
(&mut self)
clock-bound/src/daemon/async_ring_buffer.rs:243
↓ 1 callersFunctionhandle_simple_command
Handles the Simple oscillator command
clock-bound-ff-tester/src/bin/oscillator_generator.rs:196
↓ 1 callersFunctionhandle_sine_command
Handles the Sine oscillator command
clock-bound-ff-tester/src/bin/oscillator_generator.rs:214
↓ 1 callersMethodhas_valid_version
Check whether the header is marked with a valid version
clock-bound/src/shm/shm_header.rs:79
↓ 1 callersMethodhas_valid_version
Check whether the header is marked with a valid version
clock-bound/src/vmclock/shm.rs:106
↓ 1 callersMethodincremented
(&self)
clock-bound/src/daemon/event/ntp.rs:273
↓ 1 callersMethodinit_repro
Logs into the reproducibility logs that the app has started Can be used to break-up application restarts when scanning logs
clock-bound/src/daemon/clock_sync_algorithm.rs:60
↓ 1 callersFunctioninner_timeout
private inner function which loops indefinitely. Meant to be wrapped in a timeout Returns the tx tsc, NTP data, and the rx tsc
clock-bound/src/daemon/io/ntp.rs:104
↓ 1 callersMethodis_empty
Returns `true` if the buffer is empty
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:67
↓ 1 callersMethodis_empty
Returns `true` if this series has no data points
clock-bound-ff-tester/src/time/series.rs:35
↓ 1 callersFunctionis_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
test/clock-bound-phc-offset/src/phc/autoconfiguration.rs:300
↓ 1 callersMethodis_full
Returns `true` if the buffer is full
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:72
↓ 1 callersMethodis_initialized
Check whether the header is initialized
clock-bound/src/shm/shm_header.rs:93
↓ 1 callersMethodis_metal
Uses instance metadata to determine if instance is bare metal.
clock-bound/src/daemon/io/imds.rs:71
↓ 1 callersMethodis_valid
Check whether a `ShmHeader` is valid
clock-bound/src/shm/shm_header.rs:105
↓ 1 callersMethodis_valid
Check whether a `VMClockShmHeader` is valid
clock-bound/src/vmclock/shm.rs:120
↓ 1 callersMethodis_well_formed
Check whether the header is complete
clock-bound/src/shm/shm_header.rs:99
↓ 1 callersMethodis_well_formed
Check whether the header is complete
clock-bound/src/vmclock/shm.rs:113
↓ 1 callersMethodlast_disruption_marker
Returns the last VMClock read's disruption marker
clock-bound/src/daemon/io/vmclock.rs:110
↓ 1 callersFunctionmake_bins
(n_bins: usize, min: f64, step_size: f64)
clock-bound-ff-tester/src/simulation/stats/normal.rs:69
↓ 1 callersMethodmatches_magic
(&self, magic: &[u32; 2])
clock-bound/src/shm/shm_header.rs:74
↓ 1 callersMethodmatches_magic
Check whether the magic number matches the expected one.
clock-bound/src/vmclock/shm.rs:99
↓ 1 callersMethodnext_event_ready
(&self, _oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/phc/variable_delay_source.rs:142
↓ 1 callersMethodnext_event_ready
(&self, _oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/variable_network_delay_source.rs:142
↓ 1 callersMethodnext_event_ready
(&self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/dispersion_increase_linear.rs:271
↓ 1 callersMethodnext_event_ready
(&self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/perfect.rs:121
↓ 1 callersMethodnext_event_ready
(&self, oscillator: &FullModel)
clock-bound-ff-tester/src/simulation/ntp/series.rs:484
↓ 1 callersMethodnow
Obtain error-bounded timestamps and the `ClockStatus`.
clock-bound-ffi/src/lib.rs:114
↓ 1 callersMethodoffsets
Return the offsets of the time series
clock-bound-ff-tester/src/events/v1/oscillator.rs:98
↓ 1 callersMethodparse_event
(&self)
clock-bound-ff-tester/src/repro.rs:219
↓ 1 callersMethodparse_output
(&self)
clock-bound-ff-tester/src/repro.rs:213
↓ 1 callersMethodphc_exists
Returns true if a PHC source exists (has been created).
clock-bound/src/daemon/io.rs:196
↓ 1 callersMethodpop
Pops a value from the tail Used to remove stale values. Returns `None` if the values are empty
clock-bound/src/daemon/async_ring_buffer.rs:234
↓ 1 callersMethodptp_get_time
Consuming function call to retrieve timestamp from PTP device. # Errors Returns an error if the PTP ioctl fails.
test/clock-bound-phc-offset/src/phc/ptp.rs:65
↓ 1 callersMethodptp_sys_offset_extended2_with_counter_pre_and_counter_post
( &self, timeout_duration: tokio::time::Duration, )
clock-bound/src/daemon/io/phc.rs:862
↓ 1 callersMethodpush_if_newer
Adds a new event to the ring buffer Returns true if the event was added, false if it was rejected. The value could be rejected if it is older (via TS
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:122
↓ 1 callersMethodread_adjtime
Reads the current set of kernel clock adjustment variables. # Errors `NtpAdjTimeError::Failure` if `ntp_adjtime` returns -1, meaning the system call
clock-bound/src/daemon/clock_state/clock_adjust/ntp_adjtime.rs:203
↓ 1 callersMethodread_phc_sample
Reads a single PHC sample which consists of: - A reference clock timestamp - The corresponding clock error bound for that reference clock timestamp. -
clock-bound/src/daemon/io/phc.rs:503
↓ 1 callersMethodread_tsc
(&self)
clock-bound/src/daemon/io/tsc.rs:8
↓ 1 callersMethodremove_ntp_source
Removes an ntp source from `ntp_sources`
clock-bound/src/daemon/receiver_stream.rs:52
↓ 1 callersFunctionremove_path_if_exists
(path_shm: &str)
clock-bound/src/vmclock/shm_reader.rs:389
↓ 1 callersFunctionrepro_events_from_log_file
Read a logfile and return all inputs and outputs from the `ClockSyncAlgorithm` # Errors - Returns an error if unable to open the file. - Returns and
clock-bound-ff-tester/src/repro.rs:34
↓ 1 callersMethodrun
Run a whole scenario against a clock sync algorithm. Returns a list of outputs from the inner `feed_link_local` function call
clock-bound-ff-tester/src/sim_ll.rs:39
↓ 1 callersMethodrun
Run a whole scenario against a clock sync algorithm Returns a list of outputs from the feed fn
clock-bound-ff-tester/src/sim_phc.rs:42
↓ 1 callersMethodsample
Creates a `event::Phc` by reading from the PHC `NUM_SAMPLES_PER_POLL` times and retaining the best sample.
clock-bound/src/daemon/io/phc.rs:445
↓ 1 callersMethodsample
Samples the Link local source. When sampling from a NTP source we first collect the current time stamp counter value. We then send a NTP request and
clock-bound/src/daemon/io/link_local.rs:103
↓ 1 callersMethodsample
Samples the NTP Source source. When sampling from a NTP source we first collect the current time stamp counter value. We then send a NTP request and
clock-bound/src/daemon/io/ntp_source.rs:107
↓ 1 callersMethodsample
Returns a random value from the truncated distribution. # Panics This function panics if the distribution is re-sampled equal to or more than 1 mill
clock-bound-ff-tester/src/simulation/stats/truncated.rs:42
↓ 1 callersFunctionserialize_oscillator
Outputs the oscillator model to file or stdout
clock-bound-ff-tester/src/bin/oscillator_generator.rs:233
↓ 1 callersFunctionsetup
Set up link local source io for testing
test/link-local/src/main.rs:46
↓ 1 callersFunctionsetup_with_vmclock
Set up link local source io for testing
test/link-local/src/main.rs:64
↓ 1 callersFunctionstarting_oscillator_offset_nanos
()
clock-bound-ff-tester/src/simulation/ntp/series.rs:570
↓ 1 callersFunctiontest_clock_disruption_polling_rate
Test clock disruption polling
test/link-local/src/main.rs:98
↓ 1 callersFunctiontest_clock_parameters
()
clock-bound/src/daemon/clock_state/clock_adjust.rs:215
↓ 1 callersFunctiontest_normal_polling_rate
Test normal polling
test/link-local/src/main.rs:70
↓ 1 callersFunctiontest_ntp_sources
Test basic NTP source functionality
test/ntp-source/src/main.rs:60
↓ 1 callersFunctiontest_polls_with_selected_clock_source_combos
Test polling with varied selected clock source and stratum combinations
test/link-local/src/main.rs:189
↓ 1 callersFunctiontest_polls_with_selected_clock_source_combos
Test NTP sources with varied selected clock source combinations
test/ntp-source/src/main.rs:96
↓ 1 callersFunctiontest_startup_polling_rate
Test startup polling
test/link-local/src/main.rs:85
↓ 1 callersFunctiontester_event_to_link_local
(e: &Event)
clock-bound-ff-tester/src/sim_ll.rs:86
↓ 1 callersFunctiontester_phc_event_to_cb
(e: &Event)
clock-bound-ff-tester/src/sim_phc.rs:92
← previousnext →301–400 of 1,214, ranked by callers