This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/6] Refactor hp-timing rtld usage


* Wilco Dijkstra:

> Hi Florian,
>
>>> You need something to compile without timer support without unused
>>> variable errors.
>>
>> I assumed we would get generic timer support?
>
> The generic timer code calls __clock_gettime which requires VDSO
> to be setup, so I don't believe it is safe to call it from rtld.

It would be safe to call if we provide a definition of __clock_gettime
which uses the system call, which gets then interposed by the libc
definition (potentially using the vDSO) after full relocation.  So it
would just turn into a matter of performance then.  (I assume the time
scales of the vDSO and non-vDSO version of the system call are
compatible.)

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]