On Tue, Mar 04, 2014 at 03:48:57PM +0000, Pham, Calvin wrote:
> Calvin> output of strace
> strace ./testptp -d /dev/ptp0 -g
...
> clock_gettime(0xffffffe3 /* CLOCK_??? */, {1393947888, 731912808}) = 0
The kernel returns zero.
> Calvin> Here is output of ltrace
>
> [root@V4-CALVIN ptptest]# ltrace ./testptp -d /dev/ptp0 -g
...
> clock_gettime(0xffffffdb, 0x7fff7d779690, 0x7fff7d779690, -1, 0)
> = 0xffffffff
But your C library returns -1.
This is a bug in your C library.
What distro and C library are you using?
Thanks,
Richard
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users