• Xabier Marquiegui's avatar
    ptp: add testptp mask test · 26285e68
    Xabier Marquiegui authored
    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: default avatarXabier Marquiegui <reibax@gmail.com>
    Suggested-by: default avatarRichard Cochran <richardcochran@gmail.com>
    Suggested-by: default avatarVinicius Costa Gomes <vinicius.gomes@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    26285e68
testptp.c 14.9 KB