mirror-linux/tools/testing/selftests
Vladimir Oltean 7570ebe041 testptp: add new options for perout phase and pulse width
Extend the example program for PTP ancillary functionality with the
ability to configure not only the periodic output's period (frequency),
but also the phase and duty cycle (pulse width) which were newly
introduced.

The ioctl level also needs to be updated to the new PTP_PEROUT_REQUEST2,
since the original PTP_PEROUT_REQUEST doesn't support this
functionality. For an in-tree testing program, not having explicit
backwards compatibility is fine, as it should always be tested with the
current kernel headers and sources.

Tested with an oscilloscope on the felix switch PHC:

echo '2 0' > /sys/class/ptp/ptp1/pins/switch_1588_dat0
./testptp -d /dev/ptp1 -p 1000000000 -w 100000000 -H 1000 -i 0

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-20 18:04:59 -07:00
..
android
arm64 kselftest: arm64: Remove redundant clean target 2020-06-24 14:25:59 +01:00
bpf selftests/bpf: Fix merge conflict resolution 2020-07-13 20:59:25 -07:00
breakpoints
capabilities
cgroup
clone3
cpu-hotplug
cpufreq
dmabuf-heaps
drivers selftests: mlxsw: Test policers' occupancy 2020-07-15 18:10:00 -07:00
efivarfs
exec linux-kselftest-5.8-rc1 2020-06-09 10:03:12 -07:00
filesystems
firmware
ftrace selftests/ftrace: Support ":README" suffix for requires 2020-06-16 10:42:47 -06:00
futex
gpio
ia64
intel_pstate
ipc
ir
kcmp
kexec
kmod selftests: kmod: Add module address visibility test 2020-07-08 16:01:36 -07:00
kselftest
kvm KVM: selftests: fix sync_with_host() in smm_test 2020-06-11 12:35:19 -04:00
lib lib: make a test module with set/clear bit 2020-06-04 19:06:25 -07:00
livepatch
lkdtm
locking
media_tests
membarrier
memfd
memory-hotplug
mount
mqueue
net selftests: mlxsw: Test policers' occupancy 2020-07-15 18:10:00 -07:00
netfilter selftests: netfilter: add test case for conntrack helper assignment 2020-06-25 00:50:31 +02:00
nsfs
ntb NTB: ntb_test: Fix bug when counting remote files 2020-06-05 20:02:09 -04:00
openat2
pid_namespace
pidfd tests: test for setns() EINVAL regression 2020-06-17 00:48:54 +02:00
powerpc selftests/powerpc: Fix build failure in ebb tests 2020-06-26 12:53:09 +10:00
prctl
proc
pstore pstore/platform: Use backend name for console registration 2020-05-30 10:34:02 -07:00
ptp testptp: add new options for perout phase and pulse width 2020-07-20 18:04:59 -07:00
ptrace
rcutorture
resctrl
rseq
rtc
safesetid
seccomp selftests/seccomp: s390 shares the syscall and return value register 2020-06-16 13:44:04 +02:00
sigaltstack
size
sparc64
splice
static_keys
sync
sysctl linux-kselftest-5.8-rc1 2020-06-09 10:03:12 -07:00
tc-testing tc-testing: avoid action cookies with odd length. 2020-06-25 16:10:45 -07:00
timens
timers
tmpfs
tpm2 selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3 2020-07-06 14:20:35 -06:00
uevent
user
vDSO
vm khugepaged: selftests: fix timeout condition in wait_for_scan() 2020-06-10 19:14:17 -07:00
watchdog
wireguard wireguard: device: avoid circular netns references 2020-06-23 14:50:34 -07:00
x86 x86/entry, selftests: Further improve user entry sanity checks 2020-07-04 19:47:25 +02:00
zram
.gitignore
Makefile
gen_kselftest_tar.sh
kselftest.h kselftest: ksft_test_num return type should be unsigned 2020-07-06 15:07:47 -06:00
kselftest_deps.sh
kselftest_harness.h
kselftest_install.sh
kselftest_module.h
lib.mk