linux/tools/testing/selftests/ptp
Mahesh Bandewar 3d07b691ee selftest/ptp: update ptp selftest to exercise the gettimex options
With the inclusion of commit c259acab83 ("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>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://patch.msgid.link/20241003101506.769418-1-maheshb@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-10-04 15:36:43 -07:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile selftests/ptp: Remove clean target from Makefile 2023-02-13 10:05:49 -07:00
phc.sh selftests: ptp: Add Physical Hardware Clock test 2019-06-13 22:34:55 -07:00
ptpchmaskfmt.sh ptp: add debugfs interface to see applied channel masks 2023-10-15 20:07:52 +01:00
testptp.c selftest/ptp: update ptp selftest to exercise the gettimex options 2024-10-04 15:36:43 -07:00
testptp.mk