| 26285e68 | 11-Oct-2023 |
Xabier Marquiegui <[email protected]> |
ptp: add testptp mask test
Add option to test timestamp event queue mask manipulation in testptp.
Option -F allows the user to specify a single channel that will be applied on the mask filter via I
ptp: add testptp mask test
Add option to test timestamp event queue mask manipulation in testptp.
Option -F allows the user to specify a single channel that will be applied on the mask filter via IOCTL.
The test program will maintain the file open until user input is received.
This allows checking the effect of the IOCTL in debugfs.
eg:
Console 1: ``` Channel 12 exclusively enabled. Check on debugfs. Press any key to continue ```
Console 2: ``` 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ```
Signed-off-by: Xabier Marquiegui <[email protected]> Suggested-by: Richard Cochran <[email protected]> Suggested-by: Vinicius Costa Gomes <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| 3cf119ad | 25-Jul-2023 |
Alex Maftei <[email protected]> |
selftests/ptp: Add -X option for testing PTP_SYS_OFFSET_PRECISE
The -X option was chosen because X looks like a cross, and the underlying callback is 'get cross timestamp'.
Signed-off-by: Alex Maft
selftests/ptp: Add -X option for testing PTP_SYS_OFFSET_PRECISE
The -X option was chosen because X looks like a cross, and the underlying callback is 'get cross timestamp'.
Signed-off-by: Alex Maftei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| 7570ebe0 | 20-Jul-2020 |
Vladimir Oltean <[email protected]> |
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),
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 <[email protected]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|