MCPcopy Create free account

hub / github.com/facebook/time / functions

Functions3,016 in github.com/facebook/time

↓ 6 callersFunctionCalculateJitter
CalculateJitter returns a random duration between 0 and maxJitter
cmd/ptpcheck/cmd/pdelay.go:73
↓ 6 callersMethodClockID
ClockID derives the clock ID from the file descriptor number - see clock_gettime(3), FD_TO_CLOCKID macros
phc/device.go:45
↓ 6 callersMethodCommunicate
(packet chrony.RequestPacket)
cmd/ntpcheck/checker/chrony.go:62
↓ 6 callersFunctionCurrentDataSetRequest
CurrentDataSetRequest prepares request packet for CURRENT_DATA_SET request
ptp/protocol/management_tlvs.go:241
↓ 6 callersFunctionDscmp2
Dscmp2 finds better Announce based on network topology
ptp/sptp/bmc/bmc.go:40
↓ 6 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/linearizability/udpconn_mock_test.go:118
↓ 6 callersFunctionFetchStats
FetchStats returns populated Stats structure fetched from the url
ptp/sptp/stats/stats.go:115
↓ 6 callersMethodFetchStats
FetchStats fetches GMs via http
fbclock/daemon/datafetcher_http.go:55
↓ 6 callersMethodFetchStatus
FetchStatus returns the calnex status
calnex/api/api.go:724
↓ 6 callersFunctionGenerateSVG
GenerateSVG creates an SVG plot of the full OTDR trace with peaks annotated
caliper/svg.go:41
↓ 6 callersFunctionNewBitReader
NewBitReader creates a BitReader over the given byte slice.
rtcm/bits.go:26
↓ 6 callersFunctionNewMixedScanner
NewMixedScanner creates a scanner that reads both RTCM3 and UBX frames.
rtcm/mixed_scanner.go:48
↓ 6 callersFunctionNewMockFrequencyGetter
NewMockFrequencyGetter creates a new mock instance.
phc/pps_mock_test.go:321
↓ 6 callersFunctionNormalizeData
NormalizeData turns bytes that contain kv ASCII string info a map[string]string
ntp/control/packet.go:35
↓ 6 callersFunctionParse
Parse returns the list of leap seconds from srcfile. Pass "" to use default file
leapsectz/leapsectz.go:77
↓ 6 callersFunctionParseRawx
ParseRawx decodes a UBX-RXM-RAWX payload into an epoch with observations.
rtcm/ubx.go:103
↓ 6 callersMethodPos
Pos returns the current bit position.
rtcm/bits.go:57
↓ 6 callersFunctionProcessMonitoringResults
ProcessMonitoringResults returns map of metrics based on TestResults
ptp/linearizability/linearizability.go:45
↓ 6 callersMethodReadPacketWithRXTimestampBuf
(buf, oob []byte)
ptp/sptp/client/connection.go:43
↓ 6 callersFunctionSetLeapFile
SetLeapFile overrides the default leap second file path. Pass "" to reset.
leapsectz/leapsectz.go:37
↓ 6 callersMethodSetServoState
(state int)
ptp/sptp/client/stats.go:36
↓ 6 callersMethodSignaling
Signaling returns ptp Signaling packet granting the requested subscription
ptp/ptp4u/server/subscription.go:421
↓ 6 callersFunctionSockaddrToPort
SockaddrToPort converts socket address to an IP Somewhat copy from https://github.com/golang/go/blob/658b5e66ecbc41a49e6fb5aa63c5d9c804cf305f/src/net/
timestamp/timestamp.go:233
↓ 6 callersMethodStart
Start launches the HTTP server and a background goroutine that computes per-second rates.
cmd/ntripper/stats/json.go:44
↓ 6 callersMethodUBXMsgID
UBXMsgID returns the UBX message ID.
rtcm/mixed_scanner.go:194
↓ 6 callersMethodUBXPayload
UBXPayload returns the UBX payload (valid only when Type() == MsgUBX).
rtcm/mixed_scanner.go:184
↓ 6 callersFunctionWorst
Worst finding worst case clock quality from supplied data points
ptp/c4u/clock/clock.go:72
↓ 6 callersFunctionWrite
Write dumps arrays of leap seconds into file with newly created header
leapsectz/leapsectz.go:247
↓ 6 callersFunctionaeadFor
aeadFor builds an AEAD for the given algorithm using a deterministic, correctly-sized key so tests can seal and open without external key material.
ntp/protocol/nts/aead_test.go:28
↓ 6 callersFunctioncolNumber
(header []string, colName string)
cmd/ziffy/node/print.go:231
↓ 6 callersFunctiondetectGNSSSerialFrom
detectGNSSSerialFrom is the testable variant of GNSSSerial.
gnss/detect/detect.go:86
↓ 6 callersMethoddoWork
(shm *fbclock.Shm, data *DataPoint)
fbclock/daemon/daemon.go:395
↓ 6 callersFunctionfbclock_calculate_time_past_v2
Like fbclock_calculate_time_v2 but for the REALTIME-domain anchor section, with a caller-provided ts (CLOCK_REALTIME ns). The caller's ts is typically
fbclock/fbclock.c:438
↓ 6 callersFunctionfbclock_pct2ns
fbclock/fbclock.c:242
↓ 6 callersMethodfillStaticHeaders
fillStaticHeaders pre-sets all the headers per worker which will never change numbers are taken from tcpdump.
ntp/responder/server/server.go:252
↓ 6 callersFunctiongetAlternateResponsePortTLV
(client *Client)
ptp/sptp/client/asymmetry.go:193
↓ 6 callersMethodhandlePDelayReq
handlePDelayReq responds to a Pdelay_Req message with Pdelay_Resp and Pdelay_Resp_Follow_Up This implements the responder side of peer delay measureme
ptp/sptp/client/sptp.go:252
↓ 6 callersFunctionoscillatorStateFromStatus
https://datatracker.ietf.org/doc/html/rfc8173#section-7.6.2.4 https://datatracker.ietf.org/doc/html/rfc8173#section-7.6.2.5
ptp/c4u/clock/oscillatord.go:37
↓ 6 callersFunctionreverse
(s []byte)
timestamp/timestamp_linux_test.go:31
↓ 6 callersFunctionselectNonLinkLocalAddr
selectNonLinkLocalAddr returns the first global unicast IPv6 address from addrs. Returns error if no suitable address is found.
cmd/ptpcheck/cmd/pdelay.go:158
↓ 6 callersMethodsetPinFunc
(index uint, pf int, ch uint)
phc/pps_source.go:82
↓ 6 callersMethodtakeDataPoint
(n int)
fbclock/daemon/state.go:79
↓ 5 callersFunctionActivatePPSSource
ActivatePPSSource configures the PHC device to be a PPS timestamp source
phc/pps_source.go:113
↓ 5 callersFunctionBytesToPacket
BytesToPacket converts []bytes to Packet
ntp/protocol/packet.go:135
↓ 5 callersMethodCheck
Check is a method which performs basic validations that responder is alive
ntp/responder/server/interfaces.go:67
↓ 5 callersFunctionClockAdjtime
ClockAdjtime is not supported on non-linux.
phc/unix/notlinux.go:47
↓ 5 callersMethodClose
Close flushes the internal buffer. The underlying writer is not closed here; the caller owns its lifecycle.
sa53/rawlog/rawlog.go:67
↓ 5 callersMethodCurrentDataSet
CurrentDataSet sends CURRENT_DATA_SET request and returns response
ptp/protocol/management_client.go:107
↓ 5 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/linearizability/udpconn_mock_test.go:50
↓ 5 callersFunctionEnable
Enable dscp on the fd
dscp/dscp.go:26
↓ 5 callersMethodEquals
Equals compares two bundles and returns true if they both contain exactly the same certificates.
calnex/cert/cert.go:140
↓ 5 callersMethodErr
Err returns the first non-EOF error.
rtcm/mixed_scanner.go:199
↓ 5 callersMethodExplain
()
ptp/linearizability/linearizability.go:30
↓ 5 callersFunctionExport
Export data from the device about specified channels to the specified output
calnex/export/export.go:50
↓ 5 callersMethodFindSubscription
FindSubscription retrieves an existing client
ptp/ptp4u/server/worker.go:361
↓ 5 callersMethodFindSysPeer
FindSysPeer returns sys.peer (main source of NTP information for server)
cmd/ntpcheck/checker/checkresult.go:42
↓ 5 callersMethodFirmware
Firmware checks target Calnex firmware version and upgrades if apply is specified Returns err if there is a failure at any point in the process
calnex/firmware/firmware.go:93
↓ 5 callersMethodFormatFWVersion
FormatFWVersion return string representation of firmware version
sa53/protocol/protocol.go:231
↓ 5 callersMethodFrame
Frame returns the RTCM3 frame (valid only when Type() == MsgRTCM3).
rtcm/mixed_scanner.go:179
↓ 5 callersMethodGetAssociationInfo
GetAssociationInfo returns parsed normalized variables if present
ntp/control/packet.go:363
↓ 5 callersMethodGetMaxFreq
GetMaxFreq gets current configured max frequency
servo/pi.go:138
↓ 5 callersMethodHasError
HasError returns true if packet has error flag set
ntp/control/packet.go:317
↓ 5 callersMethodHasMore
HasMore returns true if packet has More flag set
ntp/control/packet.go:322
↓ 5 callersMethodIncReload
IncReload atomically add 1 to the counter
ptp/ptp4u/stats/json.go:141
↓ 5 callersMethodIncSubscription
IncSubscription atomically add 1 to the counter
ptp/ptp4u/stats/json.go:101
↓ 5 callersMethodIncTX
IncTX atomically add 1 to the counter
ptp/ptp4u/stats/json.go:111
↓ 5 callersMethodIncTXDelayReq
()
ptp/sptp/client/stats.go:41
↓ 5 callersMethodIsSA5x
IsSA5x returns true if the detected time card uses an SA5x (Celestica) oscillator
sa53/detect/detect.go:59
↓ 5 callersMethodLess
Less reports whether p sorts before q. Port identities sort first by clock identity, then their port numbers.
ptp/protocol/types.go:279
↓ 5 callersFunctionMarshalAuthenticatorBody
MarshalAuthenticatorBody serializes nonce and ciphertext into the authenticator EF body wire format defined by RFC 8915 §5.6. Nonce and ciphertext are
ntp/protocol/nts/authenticator.go:93
↓ 5 callersMethodMarshalText
MarshalText timestamp to byte slice
timestamp/timestamp.go:70
↓ 5 callersFunctionNewJSONStats
NewJSONStats creates a new JSONStats instance.
cmd/ntripper/stats/json.go:38
↓ 5 callersFunctionNewLogger
NewLogger wraps w in a buffered writer and emits a "MARK sa53 poll start" line so the file always begins with a recognizable header.
sa53/rawlog/rawlog.go:44
↓ 5 callersFunctionNewNTPDataPacket
NewNTPDataPacket creates new packet to request 'ntp data' information for given peer IP
ntp/chrony/packet.go:1059
↓ 5 callersFunctionNewServerStatsPacket
NewServerStatsPacket creates new packet to request 'serverstats' information
ntp/chrony/packet.go:1085
↓ 5 callersFunctionNewSockaddrWithPort
NewSockaddrWithPort creates a new socket address with the same IP and new port
timestamp/timestamp.go:244
↓ 5 callersFunctionNewStats
NewStats created new instance of Stats
ptp/sptp/client/stats.go:87
↓ 5 callersFunctionReadPacketWithRXTimestamp
ReadPacketWithRXTimestamp returns byte packet and HW RX timestamp
timestamp/timestamp.go:140
↓ 5 callersMethodSeal
Seal encrypts and authenticates plaintext, binding it to ad. It returns the nonce (possibly empty) and ciphertext to place in the Authenticator's Nonc
ntp/protocol/nts/aead.go:37
↓ 5 callersMethodSet
Set adds check to the runlist
ntp/responder/server/config.go:51
↓ 5 callersMethodSetExpire
SetExpire atomically sets expire
ptp/ptp4u/server/subscription.go:167
↓ 5 callersMethodSnapshot
Snapshot the values so they can be reported atomically
ptp/c4u/stats/json.go:55
↓ 5 callersMethodStopMeasure
StopMeasure stops measurement
calnex/api/api.go:973
↓ 5 callersMethodString
()
ptp/simpleclient/client.go:48
↓ 5 callersMethodTimeNs
TimeNs converts distance in meters to time in nanoseconds using the refractive index
caliper/tor.go:64
↓ 5 callersMethodUBXClass
UBXClass returns the UBX message class.
rtcm/mixed_scanner.go:189
↓ 5 callersMethodUnmarshalText
UnmarshalText timestamp from byte slice
timestamp/timestamp.go:98
↓ 5 callersMethodUnmarshalText
UnmarshalText parses ClockClass from a config string
oscillatord/monitoring.go:174
↓ 5 callersMethodUpdateCounterBy
UpdateCounterBy will increment counter
fbclock/stats/stats.go:47
↓ 5 callersMethodValid
Valid returns true if all timestamps are set
ptp/pdelay/pdelay.go:92
↓ 5 callersMethodValidate
Validate BackoffConfig is sane
ptp/sptp/client/config.go:57
↓ 5 callersMethodValidate
Validate config is sane
ptp/sptp/client/config.go:166
↓ 5 callersMethodValue
Value decodes IntFloat to float64
ptp/protocol/types.go:127
↓ 5 callersMethodaggregateDataPointsMax
(n int)
fbclock/daemon/state.go:94
↓ 5 callersFunctionbuildEph
buildEph builds GPS LNAV subframes 1-3 for a satellite with a consistent IODE/IODC. The optional fields callback sets additional ephemeris values.
rtcm/ephemeris_test.go:48
↓ 5 callersFunctionbuildUBXFrame
buildUBXFrame wraps a payload in a UBX frame (sync, class, id, length, payload, Fletcher-8 checksum).
rtcm/ubx_test.go:64
↓ 5 callersFunctioncheckPacketLength
(p *Header, l int)
ptp/protocol/protocol.go:124
↓ 5 callersFunctiondetectGNSSSerialFromGlob
detectGNSSSerialFromGlob is the testable variant of GNSSSerialFromPCI. It accepts a filepath.Glob pattern, requires exactly one match, and reads the m
gnss/detect/detect.go:101
↓ 5 callersFunctionexactFactor
exactFactor numerically computes the one-sided normal tolerance factor t'_{n-1, sqrt(n)*zp}(gamma)/sqrt(n) for n >= 2 (NaN for n < 2, the genuine boun
fbclock/daemon/gradualwindow.go:301
↓ 5 callersFunctionfbclock_window_of_uncertainty
fbclock/fbclock.c:350
← previousnext →301–400 of 3,016, ranked by callers