Go to file
Caio Bruchert 99de4bf620 PTP: fix handling phc2sys offset
When using phc2sys's -O 0 command line option, the out of tolerance
alarm is incorrectly raised.

This fix adds support to the ph2sys offset configuration along with
ptp4l's.

If phc2sys is disciplining the clock and the offset is configured using
the -O command line option, it will be used instead of ptp4l's offset.

Log errors will be generated in case there are more than one phc2sys
instance disciplining the clock and when there is a mismatch between
phc2sys and ptp4l's offset configuration.

Test Plan:
PASS: check cmd line options: no -O, -O 0, -O 36, -O 37
PASS: check cmd line options: no -c, -c CLOCK_REALTIME, -c /dev/ptp1
PASS: check config file configuration

Change-Id: Idb6e1b68361f77a8a29b81b86026a0a6dd42054f
Signed-off-by: Caio Bruchert <caio.bruchert@windriver.com>
2023-10-03 18:04:12 +00:00
2021-07-15 12:02:38 -03:00
2021-07-15 12:02:38 -03:00
2019-09-09 14:37:23 -05:00
2019-09-09 14:37:23 -05:00
2019-09-09 14:37:23 -05:00
2022-12-27 01:20:28 +00:00
Description
StarlingX system monitoring and repoting tools
4.5 MiB
Languages
Python 85.1%
Perl 14.1%
Makefile 0.6%
Shell 0.2%