[PATCH wayland] debug: add timestamps when logging

Marty Jack martyj19 at comcast.net
Mon Jul 18 04:27:31 PDT 2011



On 07/18/2011 07:17 AM, Corentin Chary wrote:
> On Mon, Jul 18, 2011 at 10:22 AM, Tiago Vignatti
> <tiago.vignatti at linux.intel.com> wrote:
>> On 07/18/2011 11:01 AM, laszlo.p.agocs at nokia.com wrote:
>>>
>>> Doesn't clock_gettime need -lrt? Otherwise (on Ubuntu at least) the linker
>>> will complain about an undefined reference in libwayland-client.so when
>>> building wayland apps.
>>>
>>
>> some other dependency in the demo clients and compositor is already linking
>> this library. But indeed the link has to come in the Wayland library side,
>> so you are right.
>>
>>    Tiago
> 
> And maybe CLOCK_REALTIME_COARSE would be better ?
> (https://lwn.net/Articles/347811/)

Unfortunately my experiments show that timerfd does not support CLOCK_*_COARSE, which would be a good addition if someone can get the kernel's attention.  I also find that you cannot mix CLOCK_* timerfds and CLOCK_*_COARSE clock_gettime and get a working timer system.

Also, you probably would use CLOCK_MONOTONIC so that when the wall clock time changes, your expirations don't.


More information about the wayland-devel mailing list