Xorg vs gettimeofday() and clock_gettime()

John Hein jhein at timing.com
Mon Feb 25 21:18:51 UTC 2008


Xin LI wrote at 12:11 -0800 on Feb 25, 2008:
 > Shall we make some source-level change to Xorg (either upstream under
 > ifdef FreeBSD or our own port, _FAST clocks are not available on some
 > other operating systems) so that we can override the gettimeofday()
 > direct calls and X_GETTIMEOFDAY's to use clock_gettime with a faster clock?

Sounds good to me.
I vote for putting in a patch in the x11-servers/xorg-server port so
it gets some quick exposure and then feeding it back upstream where
it can be added on their schedule.

I'm curious... how often (and for what purpose) does the xorg server
make the excessive gettimeofday calls?


More information about the freebsd-x11 mailing list