Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-27 Thread Geva, Erez
struct clock_stats_np_tlv { ... uint64 freq_stats, ... }; Or follow Miroslav advice and use integers only. Erez From: Tim Martin Sent: Thursday, 27 May 2021 18:52 To: Miroslav Lichvar Cc: linuxptp-devel@lists.sourceforge.net Subject: Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET

Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-27 Thread Tim Martin
: Tim Martin Cc: linuxptp-devel@lists.sourceforge.net Subject: Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock External email: Use caution opening links or attachments On Tue, May 25, 2021 at 08:28:34PM +, Tim Martin wrote: > Currently there is no way to p

Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-27 Thread Geva, Erez
t; "get PORT_PROPERTIES_NP" "get PORT_STATS_NP" "get SUBSCRIBE_EVENTS_NP" "get SYNCHRONIZATION_UNCERTAIN_NP" "get MASTER_ONLY" Enjoy Erez -Original Message- From: Richard Cochran Sent: Thursday, 27 May 2021 15:18 To: Tim Martin Cc:

Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-27 Thread Tim Martin
: Wednesday, May 26, 2021 at 4:45 AM To: Tim Martin Cc: linuxptp-devel@lists.sourceforge.net Subject: Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock External email: Use caution opening links or attachments On Tue, May 25, 2021 at 08:28:34PM +, Tim Martin wrote

Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-27 Thread Tim Martin
Sent: Tuesday, 25 May 2021 22:29 To: linuxptp-devel@lists.sourceforge.net Subject: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock Currently there is no way to programmatically access statistics about the clock frequency offset, time delay, or time offset (collectively,

Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-27 Thread Richard Cochran
On Tue, May 25, 2021 at 08:28:34PM +, Tim Martin wrote: > Currently there is no way to programmatically access statistics about > the clock frequency offset, time delay, or time offset (collectively, > the "clock_stats" metrics), except for parsing the ptp4l logs. One > option for time offset

Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-26 Thread Miroslav Lichvar
On Tue, May 25, 2021 at 08:28:34PM +, Tim Martin wrote: > +struct clock_stats_np_tlv { > + struct stats_result offset_stats; > + struct stats_result freq_stats; > + struct stats_result delay_stats; > + uint8_t offset_freq_stats_valid; > + uint8_t delay_stats_valid; > +}

Re: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-26 Thread Geva, Erez
- averageMasterSlaveDelay - minMasterSlaveDelay ... Erez -Original Message- From: Tim Martin Sent: Tuesday, 25 May 2021 22:29 To: linuxptp-devel@lists.sourceforge.net Subject: [Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock Currently there is no way

[Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-25 Thread Tim Martin
Currently there is no way to programmatically access statistics about the clock frequency offset, time delay, or time offset (collectively, the "clock_stats" metrics), except for parsing the ptp4l logs. One option for time offset would be to poll TLV_TIME_STATUS_NP in regular intervals from a