Hi Miroslav,

On Mon, Nov 01, 2021 at 10:13:36AM +0100, Miroslav Lichvar wrote:
> On Fri, Oct 29, 2021 at 03:35:30PM +0300, Vladimir Oltean wrote:
> > If I look at the struct timex definition from "man adjtimex", I see that
> > both maxerror and esterror are expressed in microseconds (i.e. STA_NANO
> > does not affect them), is that right?
> 
> Yes, it's only microsecond resolution, but I think a new flag could be
> implemented for better resolution if necessary.

I gave it a deeper thought, and even with nanosecond resolution, it
would still not be what I need. I need to measure the CLOCK_REALTIME
offset to something very specific, in this case to a PHC. With a generic
kernel interface I wouldn't know who set that maxerror/esterror and what
is the CLOCK_REALTIME actually synchronized to - it could very well be
an NTP daemon.

For what it's worth, I have solved both my problems (checking ptp4l sync
and phc2sys sync) through alternative methods, so this program / patch
set can be considered abandoned.


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to