On Thu, Mar 16, 2023 at 10:05:30AM +0100, Maciek Machnikowski wrote:
> Would that work better:
> 
> The SHM is not cleared upon servo release when exiting the tool. This
> leaves the last update in the shared memory region marked as valid.

Ok.

> If the tool that writes to the shared memory fails it can leave
> incorrect timestamps marked as valid upon exit.

I'd suggest to expand a bit:
Users may not expect that. If the configuration is changed or the tool
was restarted to reset the state after an unexpected step of the clock
(e.g. system suspend), an incorrect timestamp might be accepted by the
consumer.

> To prevent such behavior - invalidate the SHM data when releasing the
> SHM servo.


-- 
Miroslav Lichvar



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

Reply via email to