linuxolator: implement settimeofday call on FreeBSD/amd64
Scot Hetzel
swhetzel at gmail.com
Tue Dec 19 09:49:53 PST 2006
I noticed that the settimeofday call in the linuxolator is implemented
on FreeBSD/i386, but it is missing from FreeBSD/amd64. The attached
patch implements the function on FreeBSD/amd64.
I have run this change thru the LTP testcases settimeofday01, and
settimeofday02.
Currently, it is failing one test in settimeofday01 due to it taking
24-30 minutes to complete and hangs the system for that duration of
time. The test expects the difference between what it set the time to
(100 sec, 100 msec) and what it gets back from gettimeofday to be
within -500 and +500 msec.
So far it looks to be a bug in the FreeBSD kern_settimeofday function,
and not in the code that I used to implement the linux_settimeofday
function. As I had rewritten the testcase to run on FreeBSD, and it
also hung the system for the same amount of time.
Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: settimeofday.patch
Type: text/x-diff
Size: 1092 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20061219/1c344558/settimeofday.bin
More information about the freebsd-emulation
mailing list