On Thu, Oct 03, 2024 at 03:15:06AM -0700, Mahesh Bandewar wrote:
With the inclusion of commit c259acab839e ("ptp/ioctl: support MONOTONIC{,_RAW} timestamps for PTP_SYS_OFFSET_EXTENDED") clock_gettime() now allows retrieval of pre/post timestamps for CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW timebases along with the previously supported CLOCK_REALTIME.
This patch adds a command line option 'y' to the testptp program to choose one of the allowed timebases [realtime aka system, monotonic, and monotonic-raw).
Signed-off-by: Mahesh Bandewar maheshb@google.com Cc: Shuah Khan shuah@kernel.org Cc: Richard Cochran richardcochran@gmail.com Cc: "David S. Miller" davem@davemloft.net Cc: Jakub Kicinski kuba@kernel.org
Acked-by: Richard Cochran richardcochran@gmail.com