Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/nwtime/linuxptp
Linux PTP Project
https://github.com/nwtime/linuxptp
In pmc and phc2sys handle terminating signals and close the UDS
transport before exit to remove ...
This allows running multiple phc2sys and pmc instances at the same time.
Signed-off-by: Mirosla...
1773d21f26eb1aa2da0645af116d6ce27591a9cc authored over 10 years agoThis will be useful in phc2sys and pmc.
Signed-off-by: Miroslav Lichvar <[email protected]>
ca637b2067ae78c9830c38bb5e9a659255b1a4a2 authored over 10 years ago[RC: added cast to sockaddr to avoid compiler warning. ]
Signed-off-by: Miroslav Lichvar <mlich...
2423357754ae7d64d844fc064c72b8d27adf40c4 authored over 10 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
28865f91df96e83b28bb40565f12e62bd86e451f authored over 10 years ago
This is an updated version of a script I wrote a couple years ago for
debugging the PHC when wri...
Signed-off-by: Jacob Keller <[email protected]>
3e858ba17bf24589c662798e554f4051e6c25698 authored over 10 years ago
To avoid conflicts in generic names add TLV_ prefix to all TLV IDs
defined in tlv.h.
Signed-off...
70dd6823493535bc0693f45b470f8c65a8028817 authored over 10 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
bc84b880535a29e9b7d07c782445ac84aa8973b2 authored over 10 years ago
Always disable the clock sanity check when the ntpshm servo is used,
because it doesn't know whe...
When leap second is inserted/deleted to the reference time, adjust the
reference point as if the...
Introduce a new function to inform the servo about upcoming leap second.
This is used when the k...
After moving the leap second check away from update_pmc(), the time
stamp is used only to contro...
When synchronizing the system clock and the PTP UTC offset is valid and
traceable, set the TAI o...
This simplifies passing of pending leap seconds to the clocks and it
will also allow to apply le...
Signed-off-by: Richard Cochran <[email protected]>
07edab48dcfa6e28baaf54011ee19a18780d6916 authored over 10 years ago
This is a simple servo that provides the NTP SHM reference clock. It
doesn't make any clock adju...
When grandmaster does not use PTP timescale but the previous one did, we
need to reset sync offs...
Add support for subscribing to events (run_pmc_subscribe) and receiving and
handling of received...
By default, do not synchronize CLOCK_REALTIME. To do it, -r option is
needed. That will only con...
Signed-off-by: Jiri Benc <[email protected]>
1a1e02aa978f1e55e0e8694b1131276a7ba6d541 authored over 10 years ago
Make sure that we handle only one PTP clock (node). This is for an extra
safety.
Signed-off-by:...
66c9f9baaf67ab6bb42fc9ea96c789b3facdf7cf authored over 10 years agoAdd automatic configuration option (-a).
Signed-off-by: Jiri Benc <[email protected]>
46a0b281b9157392609709f989cc126191e49bef authored over 10 years ago
Recognize errors returned in MANAGEMENT_ERROR_STATUS TLV and return
a distinct value from run_pm...
Implement pmc_target_port to set a port number, leaving clock identity
unchanged, and pmc_target...
This just moves code around to have related functions together and forward
declaration at the be...
For now, only CLOCK_REALTIME can be UTC. This may stay this way forever but
now we have a clean ...
Add tracking of which ports have been added and to which clock they belong.
Signed-off-by: Jiri...
506271acac252290df5a3365c85caa02db1321b3 authored over 10 years ago
Do not call clock_open to open a clock device but let clock_add do that and
return the newly cre...
Split members that apply to all synchronized clocks and members that apply
to an individual cloc...
Split the generic (global) part of update_sync_offset and the part that
affects individual clock...
Make run_pmc usable for any kind of management message. Create wrappers for
waiting for ptp4l an...
The sanity_freq_limit field was erroneously added to the config struct
in ed379b40, the right on...
Signed-off-by: Richard Cochran <[email protected]>
abd433838448ccdd8e0b10664ccb3eebcff1dab6 authored over 10 years ago
This patch modifies the hwtstamp_ctl program, so that it will (attempt
to) use the SIOCGHWTSTAMP...
In order to allow hwtstamp_ctl to use the non-destructive SIOCGHWTSTAMP
ioctl, we need to add it...
Signed-off-by: Richard Cochran <[email protected]>
8a92b1292c8d60fd114207c7ebd9564d4f868752 authored over 10 years ago
This was broken in commit e804e6, ifa_addr is a pointer to sockaddr,
it shouldn't be referenced ...
Will be used by phc2sys to find out interfaces corresponding to ports.
Signed-off-by: Jiri Benc...
424bbde8fcca09a07375736c96041dd04467cbf4 authored over 10 years ago
Split management message creation to more fine-grained functions to allow
notification messages ...
Add expiration time to subscriptions; they need to be renewed before they
expiry. This way, the ...
Notify subscribers about port state changes.
Signed-off-by: Jiri Benc <[email protected]>
c8c6f7288f7f3bdfe6ff56cc05d05d95e36f8796 authored over 10 years ago
Split management message creation to more fine-grained functions to allow
notification messages ...
This puts groundwork for event subscription and notification. The individual
events are added by...
This parameter was made obsolete by the common address refactoring.
Signed-off-by: Jiri Benc <j...
d6e4173e1955a980a89cb81d2914d3d1f6536e6a authored over 10 years ago
When phc2sys is started before ptp4l or it is interrupted before ptp4l has
a chance to reply to ...
Signed-off-by: Jiri Benc <[email protected]>
d0a67e8b1a7ba3a606d2ba8600849dc0737dda2d authored over 10 years agoSigned-off-by: Jiri Benc <[email protected]>
ba577d7123d326facbc7ce5569a1f5cb10f20b60 authored over 10 years ago
This modifies all transports to use a new common address type, struct
address. This address is s...
Also, document transport_send, transport_peer and transport_sendto usage.
Signed-off-by: Jiri B...
4df924b253dbe3dec734fba4a1d7b88f35c03df4 authored almost 11 years ago
The callers of those functions are all using ptp_message. As we're going to
return more informat...
In order to be able to convert to a generic address struct, separate source
and destination addr...
Signed-off-by: Jiri Benc <[email protected]>
8c02ae53f28e11c13c3d78b64e8546621900209c authored almost 11 years ago
When less bytes than the header size is read, do not indicate to the caller
that the read was su...
Currently, it is assumed that the management TLV data of management COMMAND
messages is always e...
The task of preparing the message for transmission and sending it appears
at many places. Unify ...
Signed-off-by: Miroslav Lichvar <[email protected]>
683218aee61906cdb40cbaa75e803a3db2b36fa3 authored almost 11 years ago
Most PHC drivers implement stepping (ADJ_SETOFFSET) by reading the
clock, adjusting the value by...
This servo uses linear regression to estimate current time and
frequency error. The number of po...
With the new linreg servo the frequency offset and time offset are
controlled separately. The ra...
These settings will be useful for all implemented servos, so move them
to the common servo code ...
The initial check if the clock should be stepped always passed after the
servo was reset (e.g. f...
Setting GRANDMASTER_SETTINGS_NP is allowed only from UDS, but
PORT_DATA_SET can be set from any ...
This fixes reporting of negative offsets.
Signed-off-by: Miroslav Lichvar <[email protected]>
85cebe02657478b8c91d4b94a79e1d7f16d9fda3 authored almost 11 years ago
This fixes cumulativeScaledRateOffset reported in TIME_STATUS_NP before
the rate ratio is update...
Signed-off-by: Miroslav Lichvar <[email protected]>
c0fd772974a0bd9afa2a5570eeca5158b9ddc15c authored almost 11 years ago
When peer delay is < min_neighbor_prop_delay the port is flagged
as non 802.1AS capable. min_nei...
Previouly the peer delay was not taking into account the
frequency offset between the local cloc...
Signed-off-by: Richard Cochran <[email protected]>
54c9effeba6bf7aaf9948a7cc2643f269f63100c authored almost 11 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
9190959693cf94ab030d872c8e2548a37b137447 authored almost 11 years agoThis allows gcc to check format strings used in pr_* calls.
Signed-off-by: Miroslav Lichvar <ml...
1fa57ac411cecc2fd877c207913c305aaf333ede authored almost 11 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
661639420ccd459216cb7154101492eedeeb8142 authored almost 11 years ago
This allows the compiler to check if someone writes into string
literals.
Signed-off-by: Stepha...
110849d42247943b54672d1b5301ee2d2d1d6164 authored almost 11 years agoThey aren't used outside udp.c
Signed-off-by: Stephan Gatzka <[email protected]>
886112e202000a0683f94eb3e496c031e7f660bf authored almost 11 years ago
Define new PORT_DATA_SET_NP TLV
neighborPropDelayThresh can also be set using the same TLV
Sign...
29063a822767617d87d3e7f9b3ac16fb30f160cf authored almost 11 years ago
Commit e425da2f inadvertently enabled the announce timer on the UDS port,
causing it to continua...
The 'struct interface' for the UDS port is allocated on the stack, and
when this gets passed to ...
Signed-off-by: Miroslav Lichvar <[email protected]>
5dd5af5565880553b5a6736b517fe2a6759ddcd1 authored about 11 years ago
Negative path delay measurements are expected with E2E, the user doesn't
need to know when that ...
Signed-off-by: Miroslav Lichvar <[email protected]>
647bce1c0c16563490bc53d852c9ac9b94f50233 authored about 11 years ago
Store the current frequency and return it when the servo is in unlocked
state instead of zero. T...
When the drift value is adjusted by the newly measured frequency offset,
multiply the frequencie...
This increases the maximum frequency adjustment of the system clock
from 500 ppm to 10%.
Signed...
e63a6ea89b8fac5ee6ef12a18b6fdbd81ed76dd6 authored about 11 years agoSigned-off-by: Richard Cochran <[email protected]>
eb9b0bd2757b0fb8a57a122888ca82d635eb6ccf authored about 11 years ago
Although it does not need to, the UDS port tries to allocate a filter,
just as any normal port w...
This patch lets the clock release allocated memory when shutting down. The
main benefit is just ...
Conflicts:
makefile
Signed-off-by: Richard Cochran <[email protected]>
101e9dcc0eb49b42e0bfc32de2d1499582b7b26e authored about 11 years ago
According to 802.1AS, ports are always expected to transmit announce
messages, even if they neve...
Signed-off-by: Richard Cochran <[email protected]>
bdbda10c73fe3c315f785325ce0739cb5ef6b308 authored about 11 years ago
[ RC: the point is that a port may not be considered capable until
enough messages to compute ...
Sync rx timeout should be set only after receiving the first sync, see
section 10.2.7, figure 10...
Median filter has an advantage over moving average that it is much less
sensitive to outliers.
...
ed9e0fa975ce0e38d3240d05979bc4104a0b0cdf authored about 11 years ago
Add new options delay_filter and delay_filter_length to select the
filter and its length. They s...
Similarly to the servo interface, allow multiple filters to be
used for delay filtering. Convert...
This patch cleans up the error message for the Tx timestamp polling, and adds a
line which indic...
Include also nanoseconds from the current time in the srandom() call.
This should significantly ...
Instead of maintaining a table of precalculated values, use the
newly added set_tmo_random() fun...
According to 9.2.6.11 of the spec the ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
timeout in addition to an...
Check the sanity of the synchronized clock by comparing its uncorrected
frequency with the syste...