Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# I218-V rev 4, e1000e, Core i5 Haswell, CentOS 7
ptp-clock-offset /dev/ptp0
## Testing PTP_SYS_OFFSET ioct (1128283397)
PTP_SYS_OFFSET no 1: -710924824 ns, delay: 6734 ns
PTP_SYS_OFFSET no 2: -710922059 ns, delay: 3873 ns
PTP_SYS_OFFSET no 3: -710922092 ns, delay: 3889 ns
PTP_SYS_OFFSET no 4: -710922078 ns, delay: 3888 ns
PTP_SYS_OFFSET no 5: -710922096 ns, delay: 3939 ns
## Testing PTP_SYS_OFFSET_EXTENDED ioctl (3300932873)
PTP_SYS_OFFSET_EXTENDED: Operation not supported
## Testing PTP_SYS_OFFSET_PRECISE ioctl (3225435400)
PTP_SYS_OFFSET_PRECISE: Operation not supported
# I218-V rev 4, e1000e, Core i5 Haswell, Fedora 31
./ptp-clock-offset /dev/ptp0
## Testing clock_gettime
clock_gettime no 1: 37136078228 ns, delay: 6827 ns
clock_gettime no 2: 37136078723 ns, delay: 5196 ns
clock_gettime no 3: 37136079530 ns, delay: 3590 ns
clock_gettime no 4: 37136079428 ns, delay: 3765 ns
clock_gettime no 5: 37136079517 ns, delay: 3588 ns
## Testing PTP_SYS_OFFSET ioct (1128283397)
PTP_SYS_OFFSET no 1: 37136078716 ns, delay: 5068 ns, syscall: 41959 ns
PTP_SYS_OFFSET no 2: 37136079511 ns, delay: 3273 ns, syscall: 41959 ns
PTP_SYS_OFFSET no 3: 37136079395 ns, delay: 3556 ns, syscall: 41959 ns
PTP_SYS_OFFSET no 4: 37136079519 ns, delay: 3256 ns, syscall: 41959 ns
PTP_SYS_OFFSET no 5: 37136084125 ns, delay: 12706 ns, syscall: 41959 ns
## Testing PTP_SYS_OFFSET_EXTENDED ioctl (3300932873)
PTP_SYS_OFFSET_EXTENDED no 1: 37136080174 ns, delay: 656 ns, sycall: 19212 ns
PTP_SYS_OFFSET_EXTENDED no 2: 37136080158 ns, delay: 688 ns, sycall: 19212 ns
PTP_SYS_OFFSET_EXTENDED no 3: 37136080141 ns, delay: 688 ns, sycall: 19212 ns
PTP_SYS_OFFSET_EXTENDED no 4: 37136080134 ns, delay: 688 ns, sycall: 19212 ns
PTP_SYS_OFFSET_EXTENDED no 5: 37136080139 ns, delay: 688 ns, sycall: 19212 ns
## Testing PTP_SYS_OFFSET_PRECISE ioctl (3225435400)
PTP_SYS_OFFSET_PRECISE: Operation not supported
# I219-LM rev 21, e1000e, Core i7 Skylake, Fedora 31
ptp-clock-offset /dev/ptp0
## Testing clock_gettime
clock_gettime no 1: 10231568 ns, delay: 9640 ns
clock_gettime no 2: 10233029 ns, delay: 6477 ns
clock_gettime no 3: 10234792 ns, delay: 2926 ns
clock_gettime no 4: 10234827 ns, delay: 3209 ns
clock_gettime no 5: 10234756 ns, delay: 3018 ns
## Testing PTP_SYS_OFFSET ioct (1128283397)
PTP_SYS_OFFSET no 1: 10232326 ns, delay: 7709 ns, syscall: 23314 ns
PTP_SYS_OFFSET no 2: 10234857 ns, delay: 2602 ns, syscall: 23314 ns
PTP_SYS_OFFSET no 3: 10234840 ns, delay: 2614 ns, syscall: 23314 ns
PTP_SYS_OFFSET no 4: 10234903 ns, delay: 2513 ns, syscall: 23314 ns
PTP_SYS_OFFSET no 5: 10234895 ns, delay: 2720 ns, syscall: 23314 ns
## Testing PTP_SYS_OFFSET_EXTENDED ioctl (3300932873)
PTP_SYS_OFFSET_EXTENDED no 1: 10231753 ns, delay: 6521 ns, sycall: 19375 ns
PTP_SYS_OFFSET_EXTENDED no 2: 10234230 ns, delay: 1328 ns, sycall: 19375 ns
PTP_SYS_OFFSET_EXTENDED no 3: 10234309 ns, delay: 1332 ns, sycall: 19375 ns
PTP_SYS_OFFSET_EXTENDED no 4: 10234242 ns, delay: 1289 ns, sycall: 19375 ns
PTP_SYS_OFFSET_EXTENDED no 5: 10234304 ns, delay: 1342 ns, sycall: 19375 ns
## Testing PTP_SYS_OFFSET_PRECISE ioctl (3225435400)
PTP_SYS_OFFSET_PRECISE no 1: 10234425 ns, delay: 0 ns, syscall: 16457 ns
PTP_SYS_OFFSET_PRECISE no 2: 10234425 ns, delay: 0 ns, syscall: 16457 ns
PTP_SYS_OFFSET_PRECISE no 3: 10234425 ns, delay: 0 ns, syscall: 16457 ns
PTP_SYS_OFFSET_PRECISE no 4: 10234425 ns, delay: 0 ns, syscall: 16457 ns
PTP_SYS_OFFSET_PRECISE no 5: 10234425 ns, delay: 0 ns, syscall: 16457 ns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment