Tune clock frequencyΒΆ

Check that frequency can be tuned for PTP device associated with the tested network interface.

Scenarios: X3-PTP004, X3-PTP005.

  1. Find out PTP device associated with the IUT interface, call open() to get its FD.

  2. Call clock_adjtime() to check whether current frequency offset is zero.

  3. Use clock_adjtime() to tune PTP device frequency according to freq. With help of clock_gettime() check whether the clock works as expected after that.

  4. Use clock_adjtime() to undo the previously made change. With help of clock_gettime() check whether the clock works as expected after that.

Yurij Plotnikov Yurij.Plotnikov@arknetworks.am

Parameters:

env

Testing environment:

freq

Frequency offset, in parts per million

min_sleep

Minimum time to sleep between clock_gettime() calls when checking how the clock advances, seconds

max_sleep

Maximum time to sleep between clock_gettime() calls when checking how the clock advances, seconds