On Thu, Feb 06, 2020 at 08:56:04AM -0800, Cliff Spradlin wrote:
> > Is there any other tool available to track if ptp4l slave locked to GM ?
> 
> I find it easier to track ptp4l status by parsing its text output.
> State transitions aren't easily captured via polling mechanisms like
> pmc.

We have a push model, and state transition notifications are already
implemented.

> And phc2sys doesn't currently have any concept of pmc,

On the contrary:

        static void send_subscription(struct node *node)
        {
                struct subscribe_events_np sen;
        
                memset(&sen, 0, sizeof(sen));
                sen.duration = PMC_SUBSCRIBE_DURATION;
                sen.bitmask[0] = 1 << NOTIFY_PORT_STATE;
                pmc_send_set_action(node->pmc, TLV_SUBSCRIBE_EVENTS_NP, &sen, 
sizeof(sen));
        }

Currently, PORT_STATE is the only implemented notification, but the
infrastructure for adding more is in place, just waiting for patches!

Thanks,
Richard


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

Reply via email to