selftests/ptp: Add -x option for testing PTP_SYS_OFFSET_EXTENDED
authorAlex Maftei <alex.maftei@amd.com>
Tue, 25 Jul 2023 21:53:33 +0000 (22:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jul 2023 09:59:40 +0000 (10:59 +0100)
commitc8ba75c4eb846888f8f2730690b99cb5bf7b337c
tree61989f6d60d5d88f2c5a984267faceed291a1f4e
parent8ad228b1abe97b92100dcaef74cda86378874698
selftests/ptp: Add -x option for testing PTP_SYS_OFFSET_EXTENDED

The -x option (where 'x' stands for eXtended) takes an argument which
represents the number of samples to request from the PTP device.
The help message will display the maximum number of samples allowed.
Providing an invalid argument will also display the maximum number of
samples allowed.

Signed-off-by: Alex Maftei <alex.maftei@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/ptp/testptp.c